More work trying to figure out why nctest is failing

This commit is contained in:
Ward Fisher 2015-10-23 15:14:39 -06:00
parent 7c8ce85a5f
commit f7ffc9af09
2 changed files with 3 additions and 1 deletions

View File

@ -66,6 +66,7 @@ main(int argc, char **argv)
testfile = testfiles[i];
/* Run all the tests for this format. */
nerrs += test_nccreate(testfile);
nerrs += test_ncopen(testfile);
nerrs += test_ncredef(testfile);
@ -81,6 +82,7 @@ main(int argc, char **argv)
nerrs += test_ncvardef(testfile);
nerrs += test_ncvarid(testfile);
nerrs += test_ncvarinq(testfile);
nerrs += test_ncvarputg(testfile);
nerrs += test_ncvarput1(testfile);
nerrs += test_ncvarget1(testfile);
nerrs += test_ncvarput(testfile);

View File

@ -80,7 +80,7 @@ test_varputgetg(cdfid)
? nctypelen(test.vars[iv].type)
: hc[0].imap[id+1] * hc[0].npts[id+1];
nel[0] *= hc[0].npts[id];
if (id == 0)
if (id <= 0)
hc[0].offset = 0;
/* start at "upper-right" corner, do one point */