IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

VERSION 0.0.53

File:
1 edited

Legend:

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

    r9783 r9788  
    650650        p3PendingExpRow *object;
    651651
    652         object = p3PendingExpRowAlloc("a string", -32, -32    );
     652        object = p3PendingExpRowAlloc("a string", -32, -32, "a string"    );
    653653
    654654        if (!object) {
     
    668668            exit(EXIT_FAILURE);
    669669        }
     670        if (strncmp(object->label, "a string", MAX_STRING_LENGTH)) {
     671            psFree(object);
     672            exit(EXIT_FAILURE);
     673        }
    670674
    671675        psFree(object);
     
    675679        p3ProcessedExpRow *object;
    676680
    677         object = p3ProcessedExpRowAlloc("a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -32, -32    );
     681        object = p3ProcessedExpRowAlloc("a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -32, -32, "a string"    );
    678682
    679683        if (!object) {
     
    738742        }
    739743        if (!object->p3_version == -32) {
     744            psFree(object);
     745            exit(EXIT_FAILURE);
     746        }
     747        if (strncmp(object->label, "a string", MAX_STRING_LENGTH)) {
     748            psFree(object);
     749            exit(EXIT_FAILURE);
     750        }
     751
     752        psFree(object);
     753    }
     754
     755    {
     756        p3MaskRow       *object;
     757
     758        object = p3MaskRowAlloc("a string"    );
     759
     760        if (!object) {
     761            exit(EXIT_FAILURE);
     762        }
     763
     764        if (strncmp(object->label, "a string", MAX_STRING_LENGTH)) {
    740765            psFree(object);
    741766            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.