Skip to content

Commit 5e5aeec

Browse files
more debug, add NULL to end of varargs
1 parent fd9fa45 commit 5e5aeec

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

tests/test_grb2_inq.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -382,34 +382,33 @@ main()
382382
return 30;
383383
}
384384

385-
/*
386385
printf("Non-sequential option with empty argument. Should return -5.\n");
387386
options = 0;
388-
ret = grb2_inqVA(GRB_FILE, GRB_INV, options, "");
387+
ret = grb2_inqVA(GRB_FILE, GRB_INV, options, "", NULL);
389388
if (ret != -5) {
390389
printf("ERROR: grb2_inqVA() returned %lld, expected -5.\n", ret);
391390
return 32;
392-
} */
391+
}
393392

394393
printf("Test with non-conflicting options.\n");
395394
options = DATA|LATLON|META|GRIDMETA;
396-
ret = grb2_inqVA(GRB_FILE, GRB_INV, options, "UGRD");
395+
ret = grb2_inqVA(GRB_FILE, GRB_INV, options, "UGRD", NULL);
397396
if (ret != size) {
398397
printf("ERROR: grb2_inqVA() returned %lld, expected %lld.\n", ret, size);
399398
return 34;
400399
}
401400

402401
printf("Test with WENS.\n");
403402
options = WENS;
404-
ret = grb2_inqVA(GRB_FILE, GRB_INV, options, "UGRD");
403+
ret = grb2_inqVA(GRB_FILE, GRB_INV, options, "UGRD", NULL);
405404
if (ret != size) {
406405
printf("ERROR: grb2_inqVA() returned %lld, expected %lld.\n", ret, size);
407406
return 35;
408407
}
409408

410409
printf("Test with RAW_ORDER.\n");
411410
options = RAW_ORDER;
412-
ret = grb2_inqVA(GRB_FILE, GRB_INV, options, "UGRD");
411+
ret = grb2_inqVA(GRB_FILE, GRB_INV, options, "UGRD", NULL);
413412
if (ret != size) {
414413
printf("ERROR: grb2_inqVA() returned %lld, expected %lld.\n", ret, size);
415414
return 36;

0 commit comments

Comments
 (0)