IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 20, 2006, 1:58:03 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.57

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippdb/tests/insertfits.c

    r10060 r10110  
    2424        }
    2525
     26        if (!expTagCounterInsertFits(dbh, fits)) {
     27            exit(EXIT_FAILURE);
     28        }
     29
     30        if (!psFitsClose(fits)) {
     31            exit(EXIT_FAILURE);
     32        }
     33
     34        psDBCleanup(dbh);
     35    }
     36
     37    {
     38        psDB            *dbh;
     39        psFits          *fits;
     40
     41        dbh = psDBInit("localhost", "test", NULL, "test");
     42        if (!dbh) {
     43            exit(EXIT_FAILURE);
     44        }
     45
     46        // open a temp
     47        fits = psFitsOpen(TMP_FILENAME, "r");
     48        if (!fits) {
     49            exit(EXIT_FAILURE);
     50        }
     51
    2652        if (!summitExpInsertFits(dbh, fits)) {
    2753            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.