Changeset 16177 for trunk/ippdb/tests/alloc.c
- Timestamp:
- Jan 22, 2008, 10:30:49 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/alloc.c (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/alloc.c
r15792 r16177 245 245 newExpRow *object; 246 246 247 object = newExpRowAlloc(-64, "a string", "a string", "a string", "a string", "a string", "a string", "a string" );247 object = newExpRowAlloc(-64, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string" ); 248 248 249 249 if (!object) { … … 283 283 exit(EXIT_FAILURE); 284 284 } 285 if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) { 286 psFree(object); 287 exit(EXIT_FAILURE); 288 } 289 if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) { 290 psFree(object); 291 exit(EXIT_FAILURE); 292 } 293 if (strncmp(object->end_stage, "a string", MAX_STRING_LENGTH)) { 294 psFree(object); 295 exit(EXIT_FAILURE); 296 } 285 297 286 298 psFree(object); … … 315 327 rawExpRow *object; 316 328 317 object = rawExpRowAlloc(-64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", 32.32, -16 );329 object = rawExpRowAlloc(-64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", 32.32, -16 ); 318 330 319 331 if (!object) { … … 360 372 exit(EXIT_FAILURE); 361 373 } 374 if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) { 375 psFree(object); 376 exit(EXIT_FAILURE); 377 } 378 if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) { 379 psFree(object); 380 exit(EXIT_FAILURE); 381 } 382 if (strncmp(object->end_stage, "a string", MAX_STRING_LENGTH)) { 383 psFree(object); 384 exit(EXIT_FAILURE); 385 } 362 386 if (strncmp(object->filter, "a string", MAX_STRING_LENGTH)) { 363 387 psFree(object); … … 784 808 chipRunRow *object; 785 809 786 object = chipRunRowAlloc(-64, -64, "a string", "a string", "a string", "a string", "a string", "a string", "a string" );810 object = chipRunRowAlloc(-64, -64, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string" ); 787 811 788 812 if (!object) { … … 826 850 exit(EXIT_FAILURE); 827 851 } 852 if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) { 853 psFree(object); 854 exit(EXIT_FAILURE); 855 } 856 if (strncmp(object->end_stage, "a string", MAX_STRING_LENGTH)) { 857 psFree(object); 858 exit(EXIT_FAILURE); 859 } 828 860 829 861 psFree(object); … … 959 991 camRunRow *object; 960 992 961 object = camRunRowAlloc(-64, -64, "a string", "a string", "a string", "a string", "a string", "a string", "a string" );993 object = camRunRowAlloc(-64, -64, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string" ); 962 994 963 995 if (!object) { … … 1001 1033 exit(EXIT_FAILURE); 1002 1034 } 1035 if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) { 1036 psFree(object); 1037 exit(EXIT_FAILURE); 1038 } 1039 if (strncmp(object->end_stage, "a string", MAX_STRING_LENGTH)) { 1040 psFree(object); 1041 exit(EXIT_FAILURE); 1042 } 1003 1043 1004 1044 psFree(object); … … 1110 1150 warpRunRow *object; 1111 1151 1112 object = warpRunRowAlloc(-64, "a string", "a string", "a string", "a string", " 0001-01-01T00:00:00Z" );1152 object = warpRunRowAlloc(-64, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z" ); 1113 1153 1114 1154 if (!object) { … … 1132 1172 exit(EXIT_FAILURE); 1133 1173 } 1174 if (strncmp(object->workdir_state, "a string", MAX_STRING_LENGTH)) { 1175 psFree(object); 1176 exit(EXIT_FAILURE); 1177 } 1134 1178 if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) { 1179 psFree(object); 1180 exit(EXIT_FAILURE); 1181 } 1182 if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) { 1183 psFree(object); 1184 exit(EXIT_FAILURE); 1185 } 1186 if (strncmp(object->end_stage, "a string", MAX_STRING_LENGTH)) { 1135 1187 psFree(object); 1136 1188 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
