utilitylibraries/libutils/tsrc/src/test_tptr8tochar_reliability.cpp
changeset 22 ddc455616bd6
parent 0 e4d67989cc36
child 45 4b03adbd26ca
child 57 2efc27d87e1c
equal deleted inserted replaced
18:47c74d1534e1 22:ddc455616bd6
    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 
    22 
    23 void main()
    23 int main()
    24 {
    24 {
    25 	int count = 2;
    25 	//int count = 2;
    26 	bool err = false;
    26 	bool err = false;
    27 	__UHEAP_MARK;
    27 	__UHEAP_MARK;
    28 	__UHEAP_FAILNEXT(count);
    28 	__UHEAP_FAILNEXT(2);
    29 	while(!err)
    29 	while(!err)
    30 	{
    30 	{
    31 	int retval =ESuccess;
    31 	int retval =ESuccess;
    32 	char* myChar = new char[20];
    32 	char* myChar = new char[20];
    33 	_LIT8(Kname,"hello");
    33 	_LIT8(Kname,"hello");
    53 	}
    53 	}
    54 	__UHEAP_MARKEND;
    54 	__UHEAP_MARKEND;
    55 	__UHEAP_RESET;
    55 	__UHEAP_RESET;
    56 
    56 
    57     testResultXml("test_tptr8tochar_reliability");
    57     testResultXml("test_tptr8tochar_reliability");
       
    58 	
       
    59 	return 0;
    58 }
    60 }