Changeset 8380 for trunk/ippdb/tests/alloc.c
- Timestamp:
- Aug 15, 2006, 6:14:10 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/alloc.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/alloc.c
r8368 r8380 1073 1073 detNormalizedImfileRow *object; 1074 1074 1075 object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string" , "a string");1075 object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string" ); 1076 1076 1077 1077 if (!object) { … … 1095 1095 exit(EXIT_FAILURE); 1096 1096 } 1097 1098 psFree(object); 1099 } 1100 1101 { 1102 detMasterFrameRow *object; 1103 1104 object = detMasterFrameRowAlloc(-32, -32, "a string" ); 1105 1106 if (!object) { 1107 exit(EXIT_FAILURE); 1108 } 1109 1110 if (!object->det_id == -32) { 1111 psFree(object); 1112 exit(EXIT_FAILURE); 1113 } 1114 if (!object->iteration == -32) { 1115 psFree(object); 1116 exit(EXIT_FAILURE); 1117 } 1118 if (strncmp(object->comment, "a string", MAX_STRING_LENGTH)) { 1119 psFree(object); 1120 exit(EXIT_FAILURE); 1121 } 1122 1123 psFree(object); 1124 } 1125 1126 { 1127 detMasterImfileRow *object; 1128 1129 object = detMasterImfileRowAlloc(-32, "a string", "a string", "a string" ); 1130 1131 if (!object) { 1132 exit(EXIT_FAILURE); 1133 } 1134 1135 if (!object->det_id == -32) { 1136 psFree(object); 1137 exit(EXIT_FAILURE); 1138 } 1139 if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) { 1140 psFree(object); 1141 exit(EXIT_FAILURE); 1142 } 1143 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 1144 psFree(object); 1145 exit(EXIT_FAILURE); 1146 } 1097 1147 if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) { 1098 1148 psFree(object); … … 1104 1154 1105 1155 { 1106 det MasterFrameRow *object;1107 1108 object = det MasterFrameRowAlloc(-32, -32, "a string" );1156 detResidImfileRow *object; 1157 1158 object = detResidImfileRowAlloc(-32, -32, "a string", "a string", "a string", "a string", "a string", "a string" ); 1109 1159 1110 1160 if (!object) { … … 1120 1170 exit(EXIT_FAILURE); 1121 1171 } 1122 if (strncmp(object->comment, "a string", MAX_STRING_LENGTH)) { 1123 psFree(object); 1124 exit(EXIT_FAILURE); 1125 } 1126 1127 psFree(object); 1128 } 1129 1130 { 1131 detMasterImfileRow *object; 1132 1133 object = detMasterImfileRowAlloc(-32, "a string", "a string", "a string" ); 1134 1135 if (!object) { 1136 exit(EXIT_FAILURE); 1137 } 1138 1139 if (!object->det_id == -32) { 1172 if (strncmp(object->exp_id, "a string", MAX_STRING_LENGTH)) { 1140 1173 psFree(object); 1141 1174 exit(EXIT_FAILURE); … … 1145 1178 exit(EXIT_FAILURE); 1146 1179 } 1180 if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) { 1181 psFree(object); 1182 exit(EXIT_FAILURE); 1183 } 1147 1184 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 1148 1185 psFree(object); 1149 1186 exit(EXIT_FAILURE); 1150 1187 } 1151 if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) {1152 psFree(object);1153 exit(EXIT_FAILURE);1154 }1155 1156 psFree(object);1157 }1158 1159 {1160 detResidImfileAnalysisRow *object;1161 1162 object = detResidImfileAnalysisRowAlloc(-32, -32, "a string", "a string", "a string", "a string", "a string", "a string" );1163 1164 if (!object) {1165 exit(EXIT_FAILURE);1166 }1167 1168 if (!object->det_id == -32) {1169 psFree(object);1170 exit(EXIT_FAILURE);1171 }1172 if (!object->iteration == -32) {1173 psFree(object);1174 exit(EXIT_FAILURE);1175 }1176 if (strncmp(object->exp_id, "a string", MAX_STRING_LENGTH)) {1177 psFree(object);1178 exit(EXIT_FAILURE);1179 }1180 if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) {1181 psFree(object);1182 exit(EXIT_FAILURE);1183 }1184 if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) {1185 psFree(object);1186 exit(EXIT_FAILURE);1187 }1188 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) {1189 psFree(object);1190 exit(EXIT_FAILURE);1191 }1192 1188 if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) { 1193 1189 psFree(object); … … 1203 1199 1204 1200 { 1205 detResidExp AnalysisRow*object;1206 1207 object = detResidExp AnalysisRowAlloc(-32, -32, "a string", "a string", true, true );1201 detResidExpRow *object; 1202 1203 object = detResidExpRowAlloc(-32, -32, "a string", "a string", true, true ); 1208 1204 1209 1205 if (!object) {
Note:
See TracChangeset
for help on using the changeset viewer.
