IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 9, 2008, 5:11:49 PM (18 years ago)
Author:
jhoblitt
Message:

faketool merge

File:
1 edited

Legend:

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

    r17872 r18044  
    10651065        camProcessedExpRow *object;
    10661066
    1067         object = camProcessedExpRowAlloc(-64, -64, "a string", 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, "a string", -32, -32, -32, -32, "a string", -16    );
     1067        object = camProcessedExpRowAlloc(-64, "a string", 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, "a string", -32, -32, -32, -32, "a string", -16    );
    10681068
    10691069        if (!object) {
     
    10751075            exit(EXIT_FAILURE);
    10761076        }
    1077         if (!object->chip_id == -64) {
    1078             psFree(object);
    1079             exit(EXIT_FAILURE);
    1080         }
    10811077        if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) {
    10821078            psFree(object);
     
    12091205
    12101206    {
     1207        fakeRunRow      *object;
     1208
     1209        object = fakeRunRowAlloc(-64, -64, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z"    );
     1210
     1211        if (!object) {
     1212            exit(EXIT_FAILURE);
     1213        }
     1214
     1215        if (!object->fake_id == -64) {
     1216            psFree(object);
     1217            exit(EXIT_FAILURE);
     1218        }
     1219        if (!object->cam_id == -64) {
     1220            psFree(object);
     1221            exit(EXIT_FAILURE);
     1222        }
     1223        if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) {
     1224            psFree(object);
     1225            exit(EXIT_FAILURE);
     1226        }
     1227        if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) {
     1228            psFree(object);
     1229            exit(EXIT_FAILURE);
     1230        }
     1231        if (strncmp(object->label, "a string", MAX_STRING_LENGTH)) {
     1232            psFree(object);
     1233            exit(EXIT_FAILURE);
     1234        }
     1235        if (strncmp(object->reduction, "a string", MAX_STRING_LENGTH)) {
     1236            psFree(object);
     1237            exit(EXIT_FAILURE);
     1238        }
     1239        if (strncmp(object->expgroup, "a string", MAX_STRING_LENGTH)) {
     1240            psFree(object);
     1241            exit(EXIT_FAILURE);
     1242        }
     1243        if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) {
     1244            psFree(object);
     1245            exit(EXIT_FAILURE);
     1246        }
     1247        if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) {
     1248            psFree(object);
     1249            exit(EXIT_FAILURE);
     1250        }
     1251        if (strncmp(object->end_stage, "a string", MAX_STRING_LENGTH)) {
     1252            psFree(object);
     1253            exit(EXIT_FAILURE);
     1254        }
     1255            psFree(object);
     1256            exit(EXIT_FAILURE);
     1257        }
     1258
     1259        psFree(object);
     1260    }
     1261
     1262    {
     1263        fakeProcessedImfileRow *object;
     1264
     1265        object = fakeProcessedImfileRowAlloc(-64, -64, "a string", "a string", 32.32, "a string", "a string", -16, "0001-01-01T00:00:00Z"    );
     1266
     1267        if (!object) {
     1268            exit(EXIT_FAILURE);
     1269        }
     1270
     1271        if (!object->fake_id == -64) {
     1272            psFree(object);
     1273            exit(EXIT_FAILURE);
     1274        }
     1275        if (!object->exp_id == -64) {
     1276            psFree(object);
     1277            exit(EXIT_FAILURE);
     1278        }
     1279        if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) {
     1280            psFree(object);
     1281            exit(EXIT_FAILURE);
     1282        }
     1283        if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) {
     1284            psFree(object);
     1285            exit(EXIT_FAILURE);
     1286        }
     1287        if (!object->dtime_fake == 32.32) {
     1288            psFree(object);
     1289            exit(EXIT_FAILURE);
     1290        }
     1291        if (strncmp(object->hostname, "a string", MAX_STRING_LENGTH)) {
     1292            psFree(object);
     1293            exit(EXIT_FAILURE);
     1294        }
     1295        if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) {
     1296            psFree(object);
     1297            exit(EXIT_FAILURE);
     1298        }
     1299        if (!object->fault == -16) {
     1300            psFree(object);
     1301            exit(EXIT_FAILURE);
     1302        }
     1303            psFree(object);
     1304            exit(EXIT_FAILURE);
     1305        }
     1306
     1307        psFree(object);
     1308    }
     1309
     1310    {
     1311        fakeMaskRow     *object;
     1312
     1313        object = fakeMaskRowAlloc("a string"    );
     1314
     1315        if (!object) {
     1316            exit(EXIT_FAILURE);
     1317        }
     1318
     1319        if (strncmp(object->label, "a string", MAX_STRING_LENGTH)) {
     1320            psFree(object);
     1321            exit(EXIT_FAILURE);
     1322        }
     1323
     1324        psFree(object);
     1325    }
     1326
     1327    {
    12111328        warpRunRow      *object;
    12121329
     
    12211338            exit(EXIT_FAILURE);
    12221339        }
    1223         if (!object->cam_id == -64) {
     1340        if (!object->fake_id == -64) {
    12241341            psFree(object);
    12251342            exit(EXIT_FAILURE);
     
    12711388        warpSkyCellMapRow *object;
    12721389
    1273         object = warpSkyCellMapRowAlloc(-64, "a string", "a string", -64, "a string", -16    );
     1390        object = warpSkyCellMapRowAlloc(-64, "a string", "a string", "a string", -16    );
    12741391
    12751392        if (!object) {
     
    12861403        }
    12871404        if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) {
    1288             psFree(object);
    1289             exit(EXIT_FAILURE);
    1290         }
    1291         if (!object->cam_id == -64) {
    12921405            psFree(object);
    12931406            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.