utilitylibraries/libutils/tsrc/src/test_tptrc8tostring_positive.cpp
branchRCL_3
changeset 56 acd3cd4aaceb
parent 0 e4d67989cc36
child 45 4b03adbd26ca
child 57 2efc27d87e1c
equal deleted inserted replaced
54:4332f0f7be53 56:acd3cd4aaceb
    17 #include <stdio.h>
    17 #include <stdio.h>
    18 #include<e32std.h>
    18 #include<e32std.h>
    19 #include "libutils.h"
    19 #include "libutils.h"
    20 #include"std_log_result.h"
    20 #include"std_log_result.h"
    21 #define LOG_FILENAME_LINE __FILE__, __LINE__
    21 #define LOG_FILENAME_LINE __FILE__, __LINE__
    22 void main()
    22 int main()
    23 {
    23 {
    24     __UHEAP_MARK;
    24     __UHEAP_MARK;
    25     {
    25     {
    26     string s;
    26     string s;
    27     int retval =ESuccess;
    27     int retval =ESuccess;
    29     buf.Set((unsigned char *)"Hello", 5);
    29     buf.Set((unsigned char *)"Hello", 5);
    30 //    int i=0;
    30 //    int i=0;
    31 //    while (i<=1000)
    31 //    while (i<=1000)
    32 //    {
    32 //    {
    33     retval = Tptrc8ToString(buf, s);
    33     retval = Tptrc8ToString(buf, s);
       
    34     if(retval==ESuccess)
       
    35         {
       
    36         printf("Conversion successful\n");
       
    37         }
    34 //    i++;
    38 //    i++;
    35 //    printf("%d\n",i);
    39 //    printf("%d\n",i);
    36 //    }    
    40 //    }    
    37 
    41 
    38     if (!strcmp(s.c_str(), "Hello"))
    42     if (!strcmp(s.c_str(), "Hello"))
    45     printf("tbuf8tostring Failed");
    49     printf("tbuf8tostring Failed");
    46     }  	
    50     }  	
    47     }  	
    51     }  	
    48     __UHEAP_MARKEND;
    52     __UHEAP_MARKEND;
    49     testResultXml("test_tptrc8tostring_positive");
    53     testResultXml("test_tptrc8tostring_positive");
       
    54 	
       
    55 	return 0;
    50 }
    56 }