Changeset 13799 for trunk/psLib/test/sys/tap_psString.c
- Timestamp:
- Jun 13, 2007, 1:32:11 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/sys/tap_psString.c (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/sys/tap_psString.c
r13084 r13799 20 20 * @author Eric Van Alst, MHPCC 21 21 * 22 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $23 * @date $Date: 2007-0 5-01 00:08:52$22 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 23 * @date $Date: 2007-06-13 23:32:11 $ 24 24 * 25 25 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 38 38 psLogSetFormat("HLNM"); 39 39 psLogSetLevel(PS_LOG_INFO); 40 plan_tests( 72);40 plan_tests(68); 41 41 42 42 … … 200 200 } 201 201 202 202 #if 0 203 203 // testStrAppend01() 204 204 { … … 212 212 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); 213 213 } 214 214 #endif 215 215 216 216 // testStrAppend02() … … 251 251 } 252 252 253 253 #if 0 254 254 // testStrPrepend01() 255 255 { … … 263 263 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); 264 264 } 265 265 #endif 266 266 267 267 // testStrPrepend02() … … 376 376 ok(!strncmp((psString)(strList->head->next->next->next->data), " to check", 10), 377 377 "psStringSplit to return expected strings"); 378 378 379 379 psFree(strList); 380 380 //Return correct psList output for string of zero length case … … 410 410 output = psStringCopy(nullTest); 411 411 ok(output == NULL, "psStringCopy to return NULL for NULL input string"); 412 412 413 413 //psStringNCopy should return NULL for NULL input string 414 414 output = psStringNCopy(nullTest, 100); 415 415 ok(output == NULL, "psStringNCopy to return NULL for NULL input string"); 416 416 417 417 //psStringAppend should return 0 for NULL input destination 418 418 outSize = psStringAppend(nullDest, "%s", ""); 419 419 ok(outSize == 0, "psStringAppend to return 0 for NULL input destination"); 420 420 421 421 //psStringAppend should return 0 for NULL input format 422 422 outSize = psStringAppend(test, nullTest); 423 423 ok(outSize == 0, "psStringAppend to return 0 for NULL input format"); 424 424 425 425 //psStringPrepend should return 0 for NULL input destination 426 426 outSize = psStringPrepend(nullDest, " "); 427 427 ok(outSize == 0, "psStringPrepend to return 0 for NULL input destination"); 428 428 429 429 //psStringPrepend should return 0 for NULL input format 430 430 outSize = psStringPrepend(test, nullTest); 431 431 ok(outSize == 0, "psStringPrepend to return 0 for NULL input format"); 432 432 433 433 //psStringSplit should return empty list for NULL input string 434 434 psList *nullList = NULL; … … 436 436 ok(!psListLength(nullList), "psStringSplit to return NULL for NULL input string"); 437 437 psFree(nullList); 438 438 439 439 nullList = NULL; 440 440 //psStringSplit should return NULL for NULL input splitter … … 454 454 ok(psMemCheckType(PS_DATA_STRING, str), "psString allocated"); 455 455 psFree(str); 456 456 457 457 char charStr[10]; 458 458 ok(!psMemCheckType(PS_DATA_STRING, charStr),
Note:
See TracChangeset
for help on using the changeset viewer.
