Changeset 8094 for branches/jhoblitt/ippdb/tests/alloc.c
- Timestamp:
- Aug 2, 2006, 4:55:32 PM (20 years ago)
- File:
-
- 1 edited
-
branches/jhoblitt/ippdb/tests/alloc.c (modified) (16 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/jhoblitt/ippdb/tests/alloc.c
r8089 r8094 760 760 p2PendingImfileRow *object; 761 761 762 object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", "a string",-32, -32 );762 object = p2PendingImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32 ); 763 763 764 764 if (!object) { … … 778 778 exit(EXIT_FAILURE); 779 779 } 780 if (strncmp(object->stats, "a string", MAX_STRING_LENGTH)) {781 psFree(object);782 exit(EXIT_FAILURE);783 }784 780 if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) { 785 781 psFree(object); … … 870 866 p2DoneImfileRow *object; 871 867 872 object = p2DoneImfileRowAlloc("a string", "a string", "a string", "a string", "a string",-32, -32 );868 object = p2DoneImfileRowAlloc("a string", "a string", "a string", "a string", -32, -32 ); 873 869 874 870 if (!object) { … … 888 884 exit(EXIT_FAILURE); 889 885 } 890 if (strncmp(object->stats, "a string", MAX_STRING_LENGTH)) {891 psFree(object);892 exit(EXIT_FAILURE);893 }894 886 if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) { 895 887 psFree(object); … … 1062 1054 detProcessedImfileRow *object; 1063 1055 1064 object = detProcessedImfileRowAlloc(-32, "a string", "a string", "a string", "a string" , "a string");1056 object = detProcessedImfileRowAlloc(-32, "a string", "a string", "a string", "a string" ); 1065 1057 1066 1058 if (!object) { … … 1084 1076 exit(EXIT_FAILURE); 1085 1077 } 1086 if (strncmp(object->stats, "a string", MAX_STRING_LENGTH)) {1087 psFree(object);1088 exit(EXIT_FAILURE);1089 }1090 1078 if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) { 1091 1079 psFree(object); … … 1099 1087 detStackedImfileRow *object; 1100 1088 1101 object = detStackedImfileRowAlloc(-32, -32, "a string", "a string", "a string" , "a string");1089 object = detStackedImfileRowAlloc(-32, -32, "a string", "a string", "a string" ); 1102 1090 1103 1091 if (!object) { … … 1121 1109 exit(EXIT_FAILURE); 1122 1110 } 1123 if (strncmp(object->stats, "a string", MAX_STRING_LENGTH)) {1124 psFree(object);1125 exit(EXIT_FAILURE);1126 }1127 1111 if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) { 1128 1112 psFree(object); … … 1136 1120 detNormalizedImfileRow *object; 1137 1121 1138 object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string", "a string" , "a string");1122 object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string", "a string" ); 1139 1123 1140 1124 if (!object) { … … 1158 1142 exit(EXIT_FAILURE); 1159 1143 } 1160 if (strncmp(object->stats, "a string", MAX_STRING_LENGTH)) {1161 psFree(object);1162 exit(EXIT_FAILURE);1163 }1164 1144 if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) { 1165 1145 psFree(object); … … 1198 1178 detMasterImfileRow *object; 1199 1179 1200 object = detMasterImfileRowAlloc(-32, "a string", "a string", "a string" , "a string");1180 object = detMasterImfileRowAlloc(-32, "a string", "a string", "a string" ); 1201 1181 1202 1182 if (!object) { … … 1216 1196 exit(EXIT_FAILURE); 1217 1197 } 1218 if (strncmp(object->stats, "a string", MAX_STRING_LENGTH)) {1219 psFree(object);1220 exit(EXIT_FAILURE);1221 }1222 1198 if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) { 1223 1199 psFree(object); … … 1231 1207 detResidImfileAnalysisRow *object; 1232 1208 1233 object = detResidImfileAnalysisRowAlloc(-32, -32, "a string", "a string", "a string" , "a string");1209 object = detResidImfileAnalysisRowAlloc(-32, -32, "a string", "a string", "a string" ); 1234 1210 1235 1211 if (!object) { … … 1253 1229 exit(EXIT_FAILURE); 1254 1230 } 1255 if (strncmp(object->stats, "a string", MAX_STRING_LENGTH)) {1256 psFree(object);1257 exit(EXIT_FAILURE);1258 }1259 1231 if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) { 1260 1232 psFree(object); … … 1268 1240 detResidExpAnalysisRow *object; 1269 1241 1270 object = detResidExpAnalysisRowAlloc(-32, -32, "a string", "a string", "a string",true );1242 object = detResidExpAnalysisRowAlloc(-32, -32, "a string", "a string", true ); 1271 1243 1272 1244 if (!object) { … … 1283 1255 } 1284 1256 if (strncmp(object->exp_id, "a string", MAX_STRING_LENGTH)) { 1285 psFree(object);1286 exit(EXIT_FAILURE);1287 }1288 if (strncmp(object->stats, "a string", MAX_STRING_LENGTH)) {1289 1257 psFree(object); 1290 1258 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
