Changeset 17515 for trunk/psLib/test/sys/tap_psError.c
- Timestamp:
- May 4, 2008, 2:09:04 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/sys/tap_psError.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/sys/tap_psError.c
r13084 r17515 5 5 * @author Eric Van Alst, MHPCC 6 6 * 7 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $8 * @date $Date: 200 7-05-01 00:08:52$7 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2008-05-05 00:09:04 $ 9 9 * 10 10 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 19 19 #include "pstap.h" 20 20 21 // XXX in this file, several operations are only validated by printing an output to the screen. 22 // we should define an output file and compare the contents of the output file to expectations. 23 // I've commented out these features for now 24 25 # if (0) 21 26 // Function used in testError02 to verify the psErrorStackPrintV function 22 27 static void myErrorStackPrint( … … 32 37 va_end(ap); 33 38 } 34 39 # endif 35 40 36 41 psS32 main( psS32 argc, char* argv[] ) … … 83 88 psErrorCode code=PS_ERR_BAD_PARAMETER_VALUE; 84 89 ok(psError(code, true, "Error code = %d", code) == code, "Failed return value verify."); 85 psErrorStackPrint(stderr,"ERROR STACK PRINT Test1A");90 // psErrorStackPrint(stderr,"ERROR STACK PRINT Test1A"); 86 91 ok(!psMemCheckLeaks(id, NULL, NULL, false), "no memory leaks"); 87 92 } … … 94 99 ok(psError(code+1, true, "Error code = %d", code+1) == code+1, 95 100 "Failed return with empty string."); 96 psErrorStackPrint(stderr,"ERROR STACK PRINT Test1B");101 // psErrorStackPrint(stderr,"ERROR STACK PRINT Test1B"); 97 102 ok(!psMemCheckLeaks(id, NULL, NULL, false), "no memory leaks"); 98 103 } … … 104 109 ok(psError(-1, true, "Error code = %d", -1) == -1, 105 110 "Failed return with undefined code."); 106 psErrorStackPrint(stderr,"ERROR STACK PRINT Test1D");111 // psErrorStackPrint(stderr,"ERROR STACK PRINT Test1D"); 107 112 ok(!psMemCheckLeaks(id, NULL, NULL, false), "no memory leaks"); 108 113 } … … 115 120 ok(psError(code, false, "Error code = %d", code) == code, 116 121 "Failed return with false new arg."); 117 psErrorStackPrint(stderr,"ERROR STACK PRINT Test1E");122 // psErrorStackPrint(stderr,"ERROR STACK PRINT Test1E"); 118 123 ok(!psMemCheckLeaks(id, NULL, NULL, false), "no memory leaks"); 119 124 } … … 124 129 psMemId id = psMemGetId(); 125 130 ok(psError(9, true, "Errno code = %d", 9) == 9, "Error Code" ); 126 psErrorStackPrint(stderr,"ERROR STACK PRINT Test1F");131 // psErrorStackPrint(stderr,"ERROR STACK PRINT Test1F"); 127 132 ok(!psMemCheckLeaks(id, NULL, NULL, false), "no memory leaks"); 128 133 } … … 138 143 ok(psError(code, true, "Error code = %d", code) == code, 139 144 "Failed return value verify."); 140 myErrorStackPrint(stderr,"ERROR STACK PRINT Test%dA",2);145 // myErrorStackPrint(stderr,"ERROR STACK PRINT Test%dA",2); 141 146 ok(!psMemCheckLeaks(id, NULL, NULL, false), "no memory leaks"); 142 147 }
Note:
See TracChangeset
for help on using the changeset viewer.
