Changeset 15708 for trunk/psLib/test/fits/tap_psFits.c
- Timestamp:
- Nov 28, 2007, 3:27:47 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/fits/tap_psFits.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/fits/tap_psFits.c
r13800 r15708 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $9 * @date $Date: 2007- 06-13 23:33:22$8 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2007-11-29 01:27:47 $ 10 10 * 11 11 * XXXX: All of the makeTable() tests are failing, as well as one additional one. … … 93 93 bool makeTable(void) 94 94 { 95 // XXX: Should we be checking for memory leaks in this function? 96 // psMemId id = psMemGetId(); 95 97 psFits* fitsFile = psFitsOpen(tableFilename, "w"); 96 98 if (fitsFile == NULL) { … … 146 148 for (int x=0; x < 4; x++) { 147 149 vec->data.S32[x] = x*10+row; 148 vec->n++;149 150 } 150 151 psMetadataAdd(header,PS_LIST_TAIL, "MYVEC", … … 155 156 156 157 table->data[row] = header; 157 table->n++; 158 } 159 160 printf("XXX: The following call to psFitsWriteTable() seg faults\n"); 161 psFitsWriteTable(fitsFile, NULL, table, NULL); 158 } 159 160 bool rc = psFitsWriteTable(fitsFile, NULL, table, NULL); 162 161 163 162 psFree(table); 164 163 psFree(fitsFile); 165 return (!psMemCheckLeaks(15,NULL,stderr,false));164 return(rc); 166 165 } 167 166 … … 674 673 675 674 // tst_psFitsReadTable() 676 // XXXX: This is if'ed out because the call to makeTable() is seg faulting 677 if (0) { 675 if (1) { 678 676 psMemId id = psMemGetId(); 679 677 ok(makeTable(), "Created 'table' FITS file"); … … 739 737 } 740 738 741 742 739 // tst_psFitsReadTableColumnNum() 743 // XXXX: This is if'ed out because the call to makeTable() is seg faulting 744 if (0) { 740 if (1) { 745 741 psMemId id = psMemGetId(); 746 742 ok(makeTable(), "Created 'table' FITS file"); … … 812 808 813 809 // tst_psFitsReadTableColumn() 814 // XXXX: This is if'ed out because the call to makeTable() is seg faulting 815 if (0) { 810 if (1) { 816 811 psMemId id = psMemGetId(); 817 812 ok(makeTable(), "Created 'table' FITS file"); … … 899 894 900 895 // tst_psFitsUpdateTable() 901 // XXXX: This is if'ed out because the call to makeTable() is seg faulting 902 if (0) { 896 if (1) { 903 897 psMemId id = psMemGetId(); 904 898 psErr* err; … … 929 923 psMetadataAddBool(md,PS_LIST_TAIL,"MYBOOL", 0,"",((row & 1) == 1)); 930 924 psMetadataAddStr(md,PS_LIST_TAIL,"MYSTR", 0,"",strValue[row]); 931 932 933 934 935 936 937 938 939 940 941 942 943 944 925 945 926 if (!psFitsUpdateTable(fits,md,row)) {
Note:
See TracChangeset
for help on using the changeset viewer.
