Changeset 15766 for trunk/ippdb/tests/alloc.c
- Timestamp:
- Dec 7, 2007, 3:24:51 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/alloc.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/alloc.c
r15582 r15766 315 315 rawExpRow *object; 316 316 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", 32.32, 64.64, 64.64, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", 32.32, -16 );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", 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, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", 32.32, -16 ); 318 318 319 319 if (!object) { … … 412 412 exit(EXIT_FAILURE); 413 413 } 414 if (!object->M1_x == 32.32) { 415 psFree(object); 416 exit(EXIT_FAILURE); 417 } 418 if (!object->M1_y == 32.32) { 419 psFree(object); 420 exit(EXIT_FAILURE); 421 } 422 if (!object->M1_z == 32.32) { 423 psFree(object); 424 exit(EXIT_FAILURE); 425 } 426 if (!object->M1_tip == 32.32) { 427 psFree(object); 428 exit(EXIT_FAILURE); 429 } 430 if (!object->M1_tilt == 32.32) { 431 psFree(object); 432 exit(EXIT_FAILURE); 433 } 434 if (!object->M2_x == 32.32) { 435 psFree(object); 436 exit(EXIT_FAILURE); 437 } 438 if (!object->M2_y == 32.32) { 439 psFree(object); 440 exit(EXIT_FAILURE); 441 } 442 if (!object->M2_z == 32.32) { 443 psFree(object); 444 exit(EXIT_FAILURE); 445 } 446 if (!object->M2_tip == 32.32) { 447 psFree(object); 448 exit(EXIT_FAILURE); 449 } 450 if (!object->M2_tilt == 32.32) { 451 psFree(object); 452 exit(EXIT_FAILURE); 453 } 454 if (!object->env_temperature == 32.32) { 455 psFree(object); 456 exit(EXIT_FAILURE); 457 } 458 if (!object->env_humidity == 32.32) { 459 psFree(object); 460 exit(EXIT_FAILURE); 461 } 462 if (!object->env_wind_speed == 32.32) { 463 psFree(object); 464 exit(EXIT_FAILURE); 465 } 466 if (!object->env_wind_dir == 32.32) { 467 psFree(object); 468 exit(EXIT_FAILURE); 469 } 470 if (!object->pon_time == 32.32) { 471 psFree(object); 472 exit(EXIT_FAILURE); 473 } 414 474 if (!object->user_1 == 64.64) { 415 475 psFree(object); … … 451 511 rawImfileRow *object; 452 512 453 object = rawImfileRowAlloc(-64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "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, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", -16 );513 object = rawImfileRowAlloc(-64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "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, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", -16 ); 454 514 455 515 if (!object) { … … 548 608 exit(EXIT_FAILURE); 549 609 } 610 if (!object->M1_x == 32.32) { 611 psFree(object); 612 exit(EXIT_FAILURE); 613 } 614 if (!object->M1_y == 32.32) { 615 psFree(object); 616 exit(EXIT_FAILURE); 617 } 618 if (!object->M1_z == 32.32) { 619 psFree(object); 620 exit(EXIT_FAILURE); 621 } 622 if (!object->M1_tip == 32.32) { 623 psFree(object); 624 exit(EXIT_FAILURE); 625 } 626 if (!object->M1_tilt == 32.32) { 627 psFree(object); 628 exit(EXIT_FAILURE); 629 } 630 if (!object->M2_x == 32.32) { 631 psFree(object); 632 exit(EXIT_FAILURE); 633 } 634 if (!object->M2_y == 32.32) { 635 psFree(object); 636 exit(EXIT_FAILURE); 637 } 638 if (!object->M2_z == 32.32) { 639 psFree(object); 640 exit(EXIT_FAILURE); 641 } 642 if (!object->M2_tip == 32.32) { 643 psFree(object); 644 exit(EXIT_FAILURE); 645 } 646 if (!object->M2_tilt == 32.32) { 647 psFree(object); 648 exit(EXIT_FAILURE); 649 } 650 if (!object->env_temperature == 32.32) { 651 psFree(object); 652 exit(EXIT_FAILURE); 653 } 654 if (!object->env_humidity == 32.32) { 655 psFree(object); 656 exit(EXIT_FAILURE); 657 } 658 if (!object->env_wind_speed == 32.32) { 659 psFree(object); 660 exit(EXIT_FAILURE); 661 } 662 if (!object->env_wind_dir == 32.32) { 663 psFree(object); 664 exit(EXIT_FAILURE); 665 } 666 if (!object->pon_time == 32.32) { 667 psFree(object); 668 exit(EXIT_FAILURE); 669 } 550 670 if (!object->user_1 == 64.64) { 551 671 psFree(object); … … 2489 2609 flatcorrRunRow *object; 2490 2610 2491 object = flatcorrRunRowAlloc(-64, "a string", "a string", "a string", "a string" );2611 object = flatcorrRunRowAlloc(-64, "a string", "a string", "a string", "a string", "a string" ); 2492 2612 2493 2613 if (!object) { … … 2512 2632 } 2513 2633 if (strncmp(object->label, "a string", MAX_STRING_LENGTH)) { 2634 psFree(object); 2635 exit(EXIT_FAILURE); 2636 } 2637 if (strncmp(object->stats, "a string", MAX_STRING_LENGTH)) { 2514 2638 psFree(object); 2515 2639 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
