Changeset 11193 for trunk/ippdb/tests/alloc.c
- Timestamp:
- Jan 19, 2007, 2:32:14 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/alloc.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/alloc.c
r11140 r11193 827 827 detRunRow *object; 828 828 829 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" );829 object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 64.64, 64.64, "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z" ); 830 830 831 831 if (!object) { … … 853 853 exit(EXIT_FAILURE); 854 854 } 855 if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) { 856 psFree(object); 857 exit(EXIT_FAILURE); 858 } 859 if (strncmp(object->camera, "a string", MAX_STRING_LENGTH)) { 860 psFree(object); 861 exit(EXIT_FAILURE); 862 } 863 if (strncmp(object->telescope, "a string", MAX_STRING_LENGTH)) { 864 psFree(object); 865 exit(EXIT_FAILURE); 866 } 855 867 if (strncmp(object->exp_type, "a string", MAX_STRING_LENGTH)) { 856 868 psFree(object); 857 869 exit(EXIT_FAILURE); 858 870 } 859 if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) {860 psFree(object);861 exit(EXIT_FAILURE);862 }863 871 if (strncmp(object->filter, "a string", MAX_STRING_LENGTH)) { 864 872 psFree(object); 865 873 exit(EXIT_FAILURE); 866 874 } 867 if (!object->airmass == 32.32) { 868 psFree(object); 869 exit(EXIT_FAILURE); 870 } 871 if (!object->exp_time == 32.32) { 872 psFree(object); 873 exit(EXIT_FAILURE); 874 } 875 if (!object->ccd_temp == 32.32) { 876 psFree(object); 877 exit(EXIT_FAILURE); 878 } 879 if (!object->posang == 64.64) { 880 psFree(object); 881 exit(EXIT_FAILURE); 882 } 883 if (strncmp(object->object, "a string", MAX_STRING_LENGTH)) { 875 if (!object->airmass_min == 32.32) { 876 psFree(object); 877 exit(EXIT_FAILURE); 878 } 879 if (!object->airmass_max == 32.32) { 880 psFree(object); 881 exit(EXIT_FAILURE); 882 } 883 if (!object->exp_time_min == 32.32) { 884 psFree(object); 885 exit(EXIT_FAILURE); 886 } 887 if (!object->exp_time_max == 32.32) { 888 psFree(object); 889 exit(EXIT_FAILURE); 890 } 891 if (!object->ccd_temp_min == 32.32) { 892 psFree(object); 893 exit(EXIT_FAILURE); 894 } 895 if (!object->ccd_temp_max == 32.32) { 896 psFree(object); 897 exit(EXIT_FAILURE); 898 } 899 if (!object->posang_min == 64.64) { 900 psFree(object); 901 exit(EXIT_FAILURE); 902 } 903 if (!object->posang_max == 64.64) { 904 psFree(object); 905 exit(EXIT_FAILURE); 906 } 907 psFree(object); 908 exit(EXIT_FAILURE); 909 } 884 910 psFree(object); 885 911 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
