IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 23, 2006, 1:55:03 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.32

File:
1 edited

Legend:

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

    r8380 r8528  
    933933        detInputExpRow  *object;
    934934
    935         object = detInputExpRowAlloc(-32, -32, "a string", true, true    );
     935        object = detInputExpRowAlloc(-32, -32, "a string", true    );
    936936
    937937        if (!object) {
     
    955955            exit(EXIT_FAILURE);
    956956        }
     957
     958        psFree(object);
     959    }
     960
     961    {
     962        detProcessedImfileRow *object;
     963
     964        object = detProcessedImfileRowAlloc(-32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64    );
     965
     966        if (!object) {
     967            exit(EXIT_FAILURE);
     968        }
     969
     970        if (!object->det_id == -32) {
     971            psFree(object);
     972            exit(EXIT_FAILURE);
     973        }
     974        if (strncmp(object->exp_id, "a string", MAX_STRING_LENGTH)) {
     975            psFree(object);
     976            exit(EXIT_FAILURE);
     977        }
     978        if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) {
     979            psFree(object);
     980            exit(EXIT_FAILURE);
     981        }
     982        if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) {
     983            psFree(object);
     984            exit(EXIT_FAILURE);
     985        }
     986        if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) {
     987            psFree(object);
     988            exit(EXIT_FAILURE);
     989        }
     990        if (!object->bg == 64.64) {
     991            psFree(object);
     992            exit(EXIT_FAILURE);
     993        }
     994        if (!object->bg_stdev == 64.64) {
     995            psFree(object);
     996            exit(EXIT_FAILURE);
     997        }
     998        if (!object->bg_mean_stdev == 64.64) {
     999            psFree(object);
     1000            exit(EXIT_FAILURE);
     1001        }
     1002
     1003        psFree(object);
     1004    }
     1005
     1006    {
     1007        detStackedImfileRow *object;
     1008
     1009        object = detStackedImfileRowAlloc(-32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64    );
     1010
     1011        if (!object) {
     1012            exit(EXIT_FAILURE);
     1013        }
     1014
     1015        if (!object->det_id == -32) {
     1016            psFree(object);
     1017            exit(EXIT_FAILURE);
     1018        }
     1019        if (!object->iteration == -32) {
     1020            psFree(object);
     1021            exit(EXIT_FAILURE);
     1022        }
     1023        if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) {
     1024            psFree(object);
     1025            exit(EXIT_FAILURE);
     1026        }
     1027        if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) {
     1028            psFree(object);
     1029            exit(EXIT_FAILURE);
     1030        }
     1031        if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) {
     1032            psFree(object);
     1033            exit(EXIT_FAILURE);
     1034        }
     1035        if (!object->bg == 64.64) {
     1036            psFree(object);
     1037            exit(EXIT_FAILURE);
     1038        }
     1039        if (!object->bg_stdev == 64.64) {
     1040            psFree(object);
     1041            exit(EXIT_FAILURE);
     1042        }
     1043        if (!object->bg_mean_stdev == 64.64) {
     1044            psFree(object);
     1045            exit(EXIT_FAILURE);
     1046        }
     1047
     1048        psFree(object);
     1049    }
     1050
     1051    {
     1052        detNormalizedStatImfileRow *object;
     1053
     1054        object = detNormalizedStatImfileRowAlloc(-32, -32, "a string", 32.32    );
     1055
     1056        if (!object) {
     1057            exit(EXIT_FAILURE);
     1058        }
     1059
     1060        if (!object->det_id == -32) {
     1061            psFree(object);
     1062            exit(EXIT_FAILURE);
     1063        }
     1064        if (!object->iteration == -32) {
     1065            psFree(object);
     1066            exit(EXIT_FAILURE);
     1067        }
     1068        if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) {
     1069            psFree(object);
     1070            exit(EXIT_FAILURE);
     1071        }
     1072        if (!object->norm == 32.32) {
     1073            psFree(object);
     1074            exit(EXIT_FAILURE);
     1075        }
     1076
     1077        psFree(object);
     1078    }
     1079
     1080    {
     1081        detNormalizedImfileRow *object;
     1082
     1083        object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string"    );
     1084
     1085        if (!object) {
     1086            exit(EXIT_FAILURE);
     1087        }
     1088
     1089        if (!object->det_id == -32) {
     1090            psFree(object);
     1091            exit(EXIT_FAILURE);
     1092        }
     1093        if (!object->iteration == -32) {
     1094            psFree(object);
     1095            exit(EXIT_FAILURE);
     1096        }
     1097        if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) {
     1098            psFree(object);
     1099            exit(EXIT_FAILURE);
     1100        }
     1101        if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) {
     1102            psFree(object);
     1103            exit(EXIT_FAILURE);
     1104        }
     1105
     1106        psFree(object);
     1107    }
     1108
     1109    {
     1110        detMasterFrameRow *object;
     1111
     1112        object = detMasterFrameRowAlloc(-32, -32, "a string"    );
     1113
     1114        if (!object) {
     1115            exit(EXIT_FAILURE);
     1116        }
     1117
     1118        if (!object->det_id == -32) {
     1119            psFree(object);
     1120            exit(EXIT_FAILURE);
     1121        }
     1122        if (!object->iteration == -32) {
     1123            psFree(object);
     1124            exit(EXIT_FAILURE);
     1125        }
     1126        if (strncmp(object->comment, "a string", MAX_STRING_LENGTH)) {
     1127            psFree(object);
     1128            exit(EXIT_FAILURE);
     1129        }
     1130
     1131        psFree(object);
     1132    }
     1133
     1134    {
     1135        detMasterImfileRow *object;
     1136
     1137        object = detMasterImfileRowAlloc(-32, "a string", "a string", "a string"    );
     1138
     1139        if (!object) {
     1140            exit(EXIT_FAILURE);
     1141        }
     1142
     1143        if (!object->det_id == -32) {
     1144            psFree(object);
     1145            exit(EXIT_FAILURE);
     1146        }
     1147        if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) {
     1148            psFree(object);
     1149            exit(EXIT_FAILURE);
     1150        }
     1151        if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) {
     1152            psFree(object);
     1153            exit(EXIT_FAILURE);
     1154        }
     1155        if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) {
     1156            psFree(object);
     1157            exit(EXIT_FAILURE);
     1158        }
     1159
     1160        psFree(object);
     1161    }
     1162
     1163    {
     1164        detResidImfileRow *object;
     1165
     1166        object = detResidImfileRowAlloc(-32, -32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string"    );
     1167
     1168        if (!object) {
     1169            exit(EXIT_FAILURE);
     1170        }
     1171
     1172        if (!object->det_id == -32) {
     1173            psFree(object);
     1174            exit(EXIT_FAILURE);
     1175        }
     1176        if (!object->iteration == -32) {
     1177            psFree(object);
     1178            exit(EXIT_FAILURE);
     1179        }
     1180        if (strncmp(object->exp_id, "a string", MAX_STRING_LENGTH)) {
     1181            psFree(object);
     1182            exit(EXIT_FAILURE);
     1183        }
     1184        if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) {
     1185            psFree(object);
     1186            exit(EXIT_FAILURE);
     1187        }
     1188        if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) {
     1189            psFree(object);
     1190            exit(EXIT_FAILURE);
     1191        }
     1192        if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) {
     1193            psFree(object);
     1194            exit(EXIT_FAILURE);
     1195        }
     1196        if (!object->bg == 64.64) {
     1197            psFree(object);
     1198            exit(EXIT_FAILURE);
     1199        }
     1200        if (!object->bg_stdev == 64.64) {
     1201            psFree(object);
     1202            exit(EXIT_FAILURE);
     1203        }
     1204        if (!object->bg_mean_stdev == 64.64) {
     1205            psFree(object);
     1206            exit(EXIT_FAILURE);
     1207        }
     1208        if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) {
     1209            psFree(object);
     1210            exit(EXIT_FAILURE);
     1211        }
     1212        if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) {
     1213            psFree(object);
     1214            exit(EXIT_FAILURE);
     1215        }
     1216
     1217        psFree(object);
     1218    }
     1219
     1220    {
     1221        detResidExpRow  *object;
     1222
     1223        object = detResidExpRowAlloc(-32, -32, "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", true    );
     1224
     1225        if (!object) {
     1226            exit(EXIT_FAILURE);
     1227        }
     1228
     1229        if (!object->det_id == -32) {
     1230            psFree(object);
     1231            exit(EXIT_FAILURE);
     1232        }
     1233        if (!object->iteration == -32) {
     1234            psFree(object);
     1235            exit(EXIT_FAILURE);
     1236        }
     1237        if (strncmp(object->exp_id, "a string", MAX_STRING_LENGTH)) {
     1238            psFree(object);
     1239            exit(EXIT_FAILURE);
     1240        }
     1241        if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) {
     1242            psFree(object);
     1243            exit(EXIT_FAILURE);
     1244        }
     1245        if (!object->bg == 64.64) {
     1246            psFree(object);
     1247            exit(EXIT_FAILURE);
     1248        }
     1249        if (!object->bg_stdev == 64.64) {
     1250            psFree(object);
     1251            exit(EXIT_FAILURE);
     1252        }
     1253        if (!object->bg_mean_stdev == 64.64) {
     1254            psFree(object);
     1255            exit(EXIT_FAILURE);
     1256        }
     1257        if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) {
     1258            psFree(object);
     1259            exit(EXIT_FAILURE);
     1260        }
     1261        if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) {
     1262            psFree(object);
     1263            exit(EXIT_FAILURE);
     1264        }
    9571265        if (!object->accept == true) {
    9581266            psFree(object);
     
    9641272
    9651273    {
    966         detProcessedImfileRow *object;
    967 
    968         object = detProcessedImfileRowAlloc(-32, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64    );
     1274        detRunSummaryRow *object;
     1275
     1276        object = detRunSummaryRowAlloc(-32, -32, 64.64, 64.64, 64.64, true    );
    9691277
    9701278        if (!object) {
     
    9761284            exit(EXIT_FAILURE);
    9771285        }
    978         if (strncmp(object->exp_id, "a string", MAX_STRING_LENGTH)) {
    979             psFree(object);
    980             exit(EXIT_FAILURE);
    981         }
    982         if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) {
    983             psFree(object);
    984             exit(EXIT_FAILURE);
    985         }
    986         if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) {
    987             psFree(object);
    988             exit(EXIT_FAILURE);
    989         }
    990         if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) {
     1286        if (!object->iteration == -32) {
    9911287            psFree(object);
    9921288            exit(EXIT_FAILURE);
     
    10011297        }
    10021298        if (!object->bg_mean_stdev == 64.64) {
    1003             psFree(object);
    1004             exit(EXIT_FAILURE);
    1005         }
    1006 
    1007         psFree(object);
    1008     }
    1009 
    1010     {
    1011         detStackedImfileRow *object;
    1012 
    1013         object = detStackedImfileRowAlloc(-32, -32, "a string", "a string", "a string"    );
    1014 
    1015         if (!object) {
    1016             exit(EXIT_FAILURE);
    1017         }
    1018 
    1019         if (!object->det_id == -32) {
    1020             psFree(object);
    1021             exit(EXIT_FAILURE);
    1022         }
    1023         if (!object->iteration == -32) {
    1024             psFree(object);
    1025             exit(EXIT_FAILURE);
    1026         }
    1027         if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) {
    1028             psFree(object);
    1029             exit(EXIT_FAILURE);
    1030         }
    1031         if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) {
    1032             psFree(object);
    1033             exit(EXIT_FAILURE);
    1034         }
    1035         if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) {
    1036             psFree(object);
    1037             exit(EXIT_FAILURE);
    1038         }
    1039 
    1040         psFree(object);
    1041     }
    1042 
    1043     {
    1044         detNormalizedStatImfileRow *object;
    1045 
    1046         object = detNormalizedStatImfileRowAlloc(-32, -32, "a string", 32.32    );
    1047 
    1048         if (!object) {
    1049             exit(EXIT_FAILURE);
    1050         }
    1051 
    1052         if (!object->det_id == -32) {
    1053             psFree(object);
    1054             exit(EXIT_FAILURE);
    1055         }
    1056         if (!object->iteration == -32) {
    1057             psFree(object);
    1058             exit(EXIT_FAILURE);
    1059         }
    1060         if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) {
    1061             psFree(object);
    1062             exit(EXIT_FAILURE);
    1063         }
    1064         if (!object->norm == 32.32) {
    1065             psFree(object);
    1066             exit(EXIT_FAILURE);
    1067         }
    1068 
    1069         psFree(object);
    1070     }
    1071 
    1072     {
    1073         detNormalizedImfileRow *object;
    1074 
    1075         object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string"    );
    1076 
    1077         if (!object) {
    1078             exit(EXIT_FAILURE);
    1079         }
    1080 
    1081         if (!object->det_id == -32) {
    1082             psFree(object);
    1083             exit(EXIT_FAILURE);
    1084         }
    1085         if (!object->iteration == -32) {
    1086             psFree(object);
    1087             exit(EXIT_FAILURE);
    1088         }
    1089         if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) {
    1090             psFree(object);
    1091             exit(EXIT_FAILURE);
    1092         }
    1093         if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) {
    1094             psFree(object);
    1095             exit(EXIT_FAILURE);
    1096         }
    1097 
    1098         psFree(object);
    1099     }
    1100 
    1101     {
    1102         detMasterFrameRow *object;
    1103 
    1104         object = detMasterFrameRowAlloc(-32, -32, "a string"    );
    1105 
    1106         if (!object) {
    1107             exit(EXIT_FAILURE);
    1108         }
    1109 
    1110         if (!object->det_id == -32) {
    1111             psFree(object);
    1112             exit(EXIT_FAILURE);
    1113         }
    1114         if (!object->iteration == -32) {
    1115             psFree(object);
    1116             exit(EXIT_FAILURE);
    1117         }
    1118         if (strncmp(object->comment, "a string", MAX_STRING_LENGTH)) {
    1119             psFree(object);
    1120             exit(EXIT_FAILURE);
    1121         }
    1122 
    1123         psFree(object);
    1124     }
    1125 
    1126     {
    1127         detMasterImfileRow *object;
    1128 
    1129         object = detMasterImfileRowAlloc(-32, "a string", "a string", "a string"    );
    1130 
    1131         if (!object) {
    1132             exit(EXIT_FAILURE);
    1133         }
    1134 
    1135         if (!object->det_id == -32) {
    1136             psFree(object);
    1137             exit(EXIT_FAILURE);
    1138         }
    1139         if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) {
    1140             psFree(object);
    1141             exit(EXIT_FAILURE);
    1142         }
    1143         if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) {
    1144             psFree(object);
    1145             exit(EXIT_FAILURE);
    1146         }
    1147         if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) {
    1148             psFree(object);
    1149             exit(EXIT_FAILURE);
    1150         }
    1151 
    1152         psFree(object);
    1153     }
    1154 
    1155     {
    1156         detResidImfileRow *object;
    1157 
    1158         object = detResidImfileRowAlloc(-32, -32, "a string", "a string", "a string", "a string", "a string", "a string"    );
    1159 
    1160         if (!object) {
    1161             exit(EXIT_FAILURE);
    1162         }
    1163 
    1164         if (!object->det_id == -32) {
    1165             psFree(object);
    1166             exit(EXIT_FAILURE);
    1167         }
    1168         if (!object->iteration == -32) {
    1169             psFree(object);
    1170             exit(EXIT_FAILURE);
    1171         }
    1172         if (strncmp(object->exp_id, "a string", MAX_STRING_LENGTH)) {
    1173             psFree(object);
    1174             exit(EXIT_FAILURE);
    1175         }
    1176         if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) {
    1177             psFree(object);
    1178             exit(EXIT_FAILURE);
    1179         }
    1180         if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) {
    1181             psFree(object);
    1182             exit(EXIT_FAILURE);
    1183         }
    1184         if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) {
    1185             psFree(object);
    1186             exit(EXIT_FAILURE);
    1187         }
    1188         if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) {
    1189             psFree(object);
    1190             exit(EXIT_FAILURE);
    1191         }
    1192         if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) {
    1193             psFree(object);
    1194             exit(EXIT_FAILURE);
    1195         }
    1196 
    1197         psFree(object);
    1198     }
    1199 
    1200     {
    1201         detResidExpRow  *object;
    1202 
    1203         object = detResidExpRowAlloc(-32, -32, "a string", "a string", true, true    );
    1204 
    1205         if (!object) {
    1206             exit(EXIT_FAILURE);
    1207         }
    1208 
    1209         if (!object->det_id == -32) {
    1210             psFree(object);
    1211             exit(EXIT_FAILURE);
    1212         }
    1213         if (!object->iteration == -32) {
    1214             psFree(object);
    1215             exit(EXIT_FAILURE);
    1216         }
    1217         if (strncmp(object->exp_id, "a string", MAX_STRING_LENGTH)) {
    1218             psFree(object);
    1219             exit(EXIT_FAILURE);
    1220         }
    1221         if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) {
    1222             psFree(object);
    1223             exit(EXIT_FAILURE);
    1224         }
    1225         if (!object->keep == true) {
    12261299            psFree(object);
    12271300            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.