Changeset 11136 for trunk/ippdb/tests/alloc.c
- Timestamp:
- Jan 18, 2007, 2:14:55 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/alloc.c (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/alloc.c
r11113 r11136 244 244 newExpRow *object; 245 245 246 object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32 );246 object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, "a string" ); 247 247 248 248 if (!object) { … … 277 277 exit(EXIT_FAILURE); 278 278 } 279 if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) { 280 psFree(object); 281 exit(EXIT_FAILURE); 282 } 279 283 280 284 psFree(object); … … 313 317 rawExpRow *object; 314 318 315 object = rawExpRowAlloc("a string", "a string", "a string", "a string", -32, "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", -16 ); 316 317 if (!object) { 318 exit(EXIT_FAILURE); 319 } 320 321 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 319 object = rawExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, "a string", "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string", -16 ); 320 321 if (!object) { 322 exit(EXIT_FAILURE); 323 } 324 325 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 326 psFree(object); 327 exit(EXIT_FAILURE); 328 } 329 if (strncmp(object->exp_id, "a string", MAX_STRING_LENGTH)) { 322 330 psFree(object); 323 331 exit(EXIT_FAILURE); … … 331 339 exit(EXIT_FAILURE); 332 340 } 341 psFree(object); 342 exit(EXIT_FAILURE); 343 } 333 344 if (strncmp(object->exp_type, "a string", MAX_STRING_LENGTH)) { 334 345 psFree(object); … … 339 350 exit(EXIT_FAILURE); 340 351 } 352 if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) { 353 psFree(object); 354 exit(EXIT_FAILURE); 355 } 341 356 if (strncmp(object->filter, "a string", MAX_STRING_LENGTH)) { 342 357 psFree(object); … … 394 409 exit(EXIT_FAILURE); 395 410 } 396 psFree(object);397 exit(EXIT_FAILURE);398 }399 411 400 412 psFree(object); … … 822 834 detRunRow *object; 823 835 824 object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z" );836 object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z" ); 825 837 826 838 if (!object) { … … 852 864 exit(EXIT_FAILURE); 853 865 } 866 if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) { 867 psFree(object); 868 exit(EXIT_FAILURE); 869 } 854 870 if (strncmp(object->filter, "a string", MAX_STRING_LENGTH)) { 855 871 psFree(object); … … 1361 1377 p4RunRow *object; 1362 1378 1363 object = p4RunRowAlloc(-32, "a string", "a string", "a string", "a string", "a string", 64.64, 64.64, "a string", "a string" );1379 object = p4RunRowAlloc(-32, "a string", "a string", "a string", "a string", "a string", "a string", 64.64, 64.64, "a string", "a string" ); 1364 1380 1365 1381 if (!object) { … … 1376 1392 } 1377 1393 if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) { 1394 psFree(object); 1395 exit(EXIT_FAILURE); 1396 } 1397 if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) { 1378 1398 psFree(object); 1379 1399 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
