Changeset 951 for trunk/psLib/test/psTest.c
- Timestamp:
- Jun 9, 2004, 11:14:45 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/psTest.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/psTest.c
r931 r951 17 17 18 18 #include "psTest.h" 19 #include "psMemory.h" 20 #include "psError.h" 19 21 20 22 #define HEADER_TOP "/----------------------------- TESTPOINT ------------------------------------------\\\n" … … 44 46 child = fork(); 45 47 if (child == 0) { // I am the child process, run the test 46 exit(fcn()); 48 int currentId = psMemGetId(); 49 int retVal = fcn(); 50 if (retVal == expectedReturn) { 51 if (psMemCheckLeaks(currentId,NULL,stderr) != 0) { 52 psError(__func__,"Memory Leaks Detected"); 53 retVal = 64; 54 } 55 psMemCheckCorruption(1); 56 } 57 exit(retVal); 47 58 } else if (child < 0) { 48 59 fprintf(fp,"Couldn't fork a process to run a negative test (%s|%s)", packageName, testPointName);
Note:
See TracChangeset
for help on using the changeset viewer.
