Changeset 12781 for trunk/psLib/test/sys/tap_psConfigure.c
- Timestamp:
- Apr 10, 2007, 11:09:31 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/sys/tap_psConfigure.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/sys/tap_psConfigure.c
r11685 r12781 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $14 * @date $Date: 2007-0 2-07 22:50:18$13 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2007-04-10 21:09:31 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 24 24 25 25 26 static psS32 psLibVersion00(void);27 28 29 26 psS32 main(psS32 argc, char* argv[]) 30 27 { 31 plan_tests( 1);28 plan_tests(2); 32 29 33 psLibVersion00(); 30 // Simple test of psLibVersion() 31 // XX: Must somehow verify the output is correct. 32 { 33 psMemId id = psMemGetId(); 34 char *stringVal = NULL; 35 stringVal = psLibVersion(); 36 ok(stringVal != NULL && strlen(stringVal), "Version is cool"); 37 psFree(stringVal); 38 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); 39 } 34 40 } 35 41 36 37 static psS32 psLibVersion00(void)38 {39 diag("psLibVersion00");40 41 char *stringVal = NULL;42 stringVal = psLibVersion();43 ok( stringVal != NULL && strlen(stringVal), "Version is cool");44 psFree(stringVal);45 46 return 0;47 }48
Note:
See TracChangeset
for help on using the changeset viewer.
