Changeset 4433 for trunk/psLib/test/sysUtils/tst_psString.c
- Timestamp:
- Jun 29, 2005, 2:33:03 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/sysUtils/tst_psString.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/sysUtils/tst_psString.c
r3996 r4433 20 20 * @author Eric Van Alst, MHPCC 21 21 * 22 * @version $Revision: 1.1 5$ $Name: not supported by cvs2svn $23 * @date $Date: 2005-0 5-20 01:40:40$22 * @version $Revision: 1.16 $ $Name: not supported by cvs2svn $ 23 * @date $Date: 2005-06-30 00:33:03 $ 24 24 * 25 25 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 38 38 static psS32 testStringCopy03(void); 39 39 static psS32 testStringCopy04(void); 40 static psS32 testStringCopy05(void);40 //static psS32 testStringCopy05(void); 41 41 static psS32 testStringCopy06(void); 42 42 … … 57 57 {testStringCopy03, 3, "Verify empty string copy with length", 0, false}, 58 58 {testStringCopy04, 4, "Copy string to larger string", 0, false}, 59 {testStringCopy05, 5, "Copy string with negative size", 0, false},59 // {testStringCopy05, 5, "Copy string with negative size", 0, false}, 60 60 {testStringCopy06, 6, "Verify creation of string literal", 0, false}, 61 61 … … 239 239 } 240 240 241 static psS32 testStringCopy05(void) 242 { 243 char *strResult; 244 char stringval[20] = "E R R O R"; 245 psS32 negativeSize = -5; 246 247 // Test point #6 Copy string with negative size - psStringNCopy 248 strResult = psStringNCopy(stringval, negativeSize); 249 if ( strResult != NULL ) { 250 fprintf(stderr,"Failed test point #6 return value = %p expected NULL\n", 251 strResult); 252 return 1; 253 } 254 // Memory should not have been allocated 255 256 return 0; 257 } 241 // XXX This test needs to be modified to check for maximum size 242 // This will require a mod to psStringNCopy source to check for maximum size 243 // 244 //static psS32 testStringCopy05(void) 245 //{ 246 // char *strResult; 247 // char stringval[20] = "E R R O R"; 248 // psS32 negativeSize = -5; 249 // 250 // // Test point #6 Copy string with negative size - psStringNCopy 251 // strResult = psStringNCopy(stringval, negativeSize); 252 // if ( strResult != NULL ) { 253 // fprintf(stderr,"Failed test point #6 return value = %p expected NULL\n", 254 // strResult); 255 // return 1; 256 // } 257 // // Memory should not have been allocated 258 // 259 // return 0; 260 //} 258 261 259 262 static psS32 testStringCopy06(void)
Note:
See TracChangeset
for help on using the changeset viewer.
