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/alloc.c

    r10060 r10110  
    99{
    1010    {
     11        expTagCounterRow *object;
     12
     13        object = expTagCounterRowAlloc(64    );
     14
     15        if (!object) {
     16            exit(EXIT_FAILURE);
     17        }
     18
     19            psFree(object);
     20            exit(EXIT_FAILURE);
     21        }
     22
     23        psFree(object);
     24    }
     25
     26    {
    1127        summitExpRow    *object;
    1228
     
    224240        newExpRow       *object;
    225241
    226         object = newExpRowAlloc(64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32    );
    227 
    228         if (!object) {
    229             exit(EXIT_FAILURE);
    230         }
    231 
     242        object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32    );
     243
     244        if (!object) {
     245            exit(EXIT_FAILURE);
     246        }
     247
     248        if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) {
    232249            psFree(object);
    233250            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.