Skip to content

Commit 5ba679b

Browse files
debugging
1 parent f753be5 commit 5ba679b

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

tests/test_grb2_inq.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -367,21 +367,21 @@ main()
367367
}
368368

369369
printf("Invalid file name. Should return -2.\n");
370-
// options = SEQUENTIAL;
371-
//ret = grb2_inqVA("invalid.grib2", GRB_INV, options, NULL);
372-
//if (ret != -2) {
373-
// printf("ERROR: grb2_inqVA() returned %lld, expected -2.\n", ret);
374-
// return 29;
375-
//}
376-
377-
printf("Invalid argument. Should return -3.\n");
378370
options = SEQUENTIAL;
379-
ret = grb2_inqVA(GRB_FILE, GRB_INV, options, "-invalid_arg", NULL);
380-
if (ret != -3) {
381-
printf("ERROR: grb2_inqVA() returned %lld, expected -3.\n", ret);
382-
return 30;
371+
ret = grb2_inqVA("invalid.grib2", GRB_INV, options, NULL);
372+
if (ret != -2) {
373+
printf("ERROR: grb2_inqVA() returned %lld, expected -2.\n", ret);
374+
return 29;
383375
}
384376

377+
//printf("Invalid argument. Should return -3.\n");
378+
//options = SEQUENTIAL;
379+
//ret = grb2_inqVA(GRB_FILE, GRB_INV, options, "-invalid_arg", NULL);
380+
//if (ret != -3) {
381+
// printf("ERROR: grb2_inqVA() returned %lld, expected -3.\n", ret);
382+
// return 30;
383+
//}
384+
385385
printf("Non-sequential option with empty argument. Should return -5.\n");
386386
options = 0;
387387
ret = grb2_inqVA(GRB_FILE, GRB_INV, options, "");

0 commit comments

Comments
 (0)