IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 30, 2006, 11:25:59 AM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.52

File:
1 edited

Legend:

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

    r9705 r9783  
    477477        p2PendingExpRow *object;
    478478
    479         object = p2PendingExpRowAlloc("a string", "a string", -32, -32    );
     479        object = p2PendingExpRowAlloc("a string", "a string", -32, -32, "a string"    );
    480480
    481481        if (!object) {
     
    499499            exit(EXIT_FAILURE);
    500500        }
     501        if (strncmp(object->label, "a string", MAX_STRING_LENGTH)) {
     502            psFree(object);
     503            exit(EXIT_FAILURE);
     504        }
    501505
    502506        psFree(object);
     
    543547        p2ProcessedExpRow *object;
    544548
    545         object = p2ProcessedExpRowAlloc("a string", -32, -32    );
     549        object = p2ProcessedExpRowAlloc("a string", -32, -32, "a string"    );
    546550
    547551        if (!object) {
     
    558562        }
    559563        if (!object->p2_version == -32) {
     564            psFree(object);
     565            exit(EXIT_FAILURE);
     566        }
     567        if (strncmp(object->label, "a string", MAX_STRING_LENGTH)) {
     568            psFree(object);
     569            exit(EXIT_FAILURE);
     570        }
     571
     572        psFree(object);
     573    }
     574
     575    {
     576        p2MaskRow       *object;
     577
     578        object = p2MaskRowAlloc("a string"    );
     579
     580        if (!object) {
     581            exit(EXIT_FAILURE);
     582        }
     583
     584        if (strncmp(object->label, "a string", MAX_STRING_LENGTH)) {
    560585            psFree(object);
    561586            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.