searchengine/cpix/tsrc/cpixunittest/src/std_log_result.cpp
changeset 7 a5fbfefd615f
parent 3 ae3f1779f6da
child 24 65456528cac2
equal deleted inserted replaced
3:ae3f1779f6da 7:a5fbfefd615f
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 #include "std_log_result.h"
     1 #include "std_log_result.h"
    18 #ifdef __SYMBIAN32__
     2 #ifdef __SYMBIAN32__
    19 #define LOG_FILE "c:\\logs\\std_test_log.txt"
     3 #define LOG_FILE "c:\\logs\\std_test_log.txt"
    20 #define LOG_DIR "c:\\logs\\"
     4 #define LOG_DIR "c:\\logs\\"
    21 #define LOG_FILE_EXT "xml"
     5 #define LOG_FILE_EXT "xml"
   122     char *atstestclose      =       "\n\t\t</test-case>";
   106     char *atstestclose      =       "\n\t\t</test-case>";
   123 
   107 
   124     // create the xml file name
   108     // create the xml file name
   125     FILE *fp_result;
   109     FILE *fp_result;
   126     sprintf(xmlfilename, "%s%s.%s", LOG_DIR, filename, LOG_FILE_EXT);
   110     sprintf(xmlfilename, "%s%s.%s", LOG_DIR, filename, LOG_FILE_EXT);
   127     strftime(time_buf,50,"%c",tm1);
   111     //strftime(time_buf,50,"%c",tm1);
       
   112     sprintf(time_buf,"%s","");
   128 
   113 
   129     if(assert_failed )
   114     if(assert_failed )
   130         strcpy(result,"FAILED");
   115         strcpy(result,"FAILED");
   131     else
   116     else
   132         strcpy(result,"PASSED");
   117         strcpy(result,"PASSED");