IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 28, 2006, 12:23:25 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.60

File:
1 edited

Legend:

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

    r10155 r10238  
    12571257
    12581258    {
    1259         detMasterFrameRow *object;
    1260 
    1261         object = detMasterFrameRowAlloc(-32, -32, "a string"    );
    1262 
    1263         if (!object) {
    1264             exit(EXIT_FAILURE);
    1265         }
    1266 
    1267         if (!object->det_id == -32) {
    1268             psFree(object);
    1269             exit(EXIT_FAILURE);
    1270         }
    1271         if (!object->iteration == -32) {
    1272             psFree(object);
    1273             exit(EXIT_FAILURE);
    1274         }
    1275         if (strncmp(object->comment, "a string", MAX_STRING_LENGTH)) {
    1276             psFree(object);
    1277             exit(EXIT_FAILURE);
    1278         }
    1279 
    1280         psFree(object);
    1281     }
    1282 
    1283     {
    1284         detMasterImfileRow *object;
    1285 
    1286         object = detMasterImfileRowAlloc(-32, "a string", "a string", "a string"    );
    1287 
    1288         if (!object) {
    1289             exit(EXIT_FAILURE);
    1290         }
    1291 
    1292         if (!object->det_id == -32) {
    1293             psFree(object);
    1294             exit(EXIT_FAILURE);
    1295         }
    1296         if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) {
    1297             psFree(object);
    1298             exit(EXIT_FAILURE);
    1299         }
    1300         if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) {
    1301             psFree(object);
    1302             exit(EXIT_FAILURE);
    1303         }
    1304         if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) {
    1305             psFree(object);
    1306             exit(EXIT_FAILURE);
    1307         }
    1308 
    1309         psFree(object);
    1310     }
    1311 
    1312     {
    13131259        detResidImfileRow *object;
    13141260
Note: See TracChangeset for help on using the changeset viewer.