From: Subrata <sub...@us...> - 2007-07-26 12:02:21
|
Update of /cvsroot/ltp/ltp/testcases/open_posix_testsuite/conformance/interfaces/strftime In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv23217/ltp/testcases/open_posix_testsuite/conformance/interfaces/strftime Modified Files: 1-1.c Log Message: Upgrade to Posix Testsuite 1.5.2 Index: 1-1.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/open_posix_testsuite/conformance/interfaces/strftime/1-1.c,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** 1-1.c 3 Jun 2005 16:36:21 -0000 1.7 --- 1-1.c 26 Jul 2007 12:02:15 -0000 1.8 *************** *** 25,29 **** time_t t = time(NULL); struct tm* local_t = localtime(&t); ! char text[20]; int result; --- 25,29 ---- time_t t = time(NULL); struct tm* local_t = localtime(&t); ! char text[256]; int result; *************** *** 337,342 **** result = strftime(text, 256, "%X", local_t); printf("X Bytes %i %s ", result, text); ! if ( result != 8 ) { ! puts("Test Failed: \%X doesn't equal at least 11 bytes"); return PTS_FAIL; } else { --- 337,342 ---- result = strftime(text, 256, "%X", local_t); printf("X Bytes %i %s ", result, text); ! if ( result < 8 ) { ! puts("Test Failed: \%X doesn't equal at least 8 bytes"); return PTS_FAIL; } else { |