IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9745 for trunk/psLib/test


Ignore:
Timestamp:
Oct 24, 2006, 6:58:39 PM (20 years ago)
Author:
drobbin
Message:

Fixed LookupTable to error when a partially-constructed table row is encountered. Also fixed memory leak associated with this case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/types/tap_psLookupTable_all.c

    r9714 r9745  
    2424int main(void)
    2525{
    26     plan_tests(27);
     26    plan_tests(28);
    2727
    2828    diag("Tests for psLookupTable Functions");
     
    149149            "psVectorsReadFromFile:           return NULL for empty table.");
    150150    }
     151    // Attempt to read from file with partially constructed row
     152    {
     153        outVec = psVectorsReadFromFile("table3.dat",
     154                                       "\%f \%d \%d \%ld \%d \%d \%d \%ld \%*d \%lf");
     155        ok( outVec == NULL,
     156            "psVectorsReadFromFile:           return NULL for table with partially"
     157            " constructed row.");
     158    }
    151159    //Attempt to read with valid inputs
    152160    {
Note: See TracChangeset for help on using the changeset viewer.