IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 23, 2006, 1:55:03 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.32

File:
1 edited

Legend:

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

    r8380 r8528  
    841841    }
    842842
     843    {
     844        psDB            *dbh;
     845        psFits          *fits;
     846
     847        dbh = psDBInit("localhost", "test", NULL, "test");
     848        if (!dbh) {
     849            exit(EXIT_FAILURE);
     850        }
     851
     852        // open a temp
     853        fits = psFitsOpen(TMP_FILENAME, "r");
     854        if (!fits) {
     855            exit(EXIT_FAILURE);
     856        }
     857
     858        if (!detRunSummaryInsertFits(dbh, fits)) {
     859            exit(EXIT_FAILURE);
     860        }
     861
     862        if (!psFitsClose(fits)) {
     863            exit(EXIT_FAILURE);
     864        }
     865
     866        psDBCleanup(dbh);
     867    }
     868
    843869    exit(EXIT_SUCCESS);
    844870}
Note: See TracChangeset for help on using the changeset viewer.