utilitylibraries/libutils/tsrc/src/test_tbuf8tostring_positive1.cpp
changeset 22 ddc455616bd6
parent 0 e4d67989cc36
child 45 4b03adbd26ca
child 57 2efc27d87e1c
--- a/utilitylibraries/libutils/tsrc/src/test_tbuf8tostring_positive1.cpp	Fri Apr 16 16:46:38 2010 +0300
+++ b/utilitylibraries/libutils/tsrc/src/test_tbuf8tostring_positive1.cpp	Mon May 03 14:06:43 2010 +0300
@@ -20,14 +20,17 @@
 #include "libutils.h"
 #include"std_log_result.h"
 #define LOG_FILENAME_LINE __FILE__, __LINE__
-void main()
+int main()
 {
     int retval =ESuccess;
     string s;
     __UHEAP_MARK;
     TBuf8 <12>  buf((const unsigned char *)"Hello");
     retval = Tbuf8ToString(buf, s);
-
+    if (retval == ESuccess)
+        {
+        printf("TBuf8 to string conversion successful\n");
+        }
     if (!strcmp(s.c_str(), "Hello"))
     {
     printf("tbuf8tostring Passed");
@@ -39,4 +42,5 @@
     }  	
     __UHEAP_MARKEND;
     testResultXml("test_tbuf8tostring_positive1");
+	return 0;
 }