Remove windows incompatibility in nc_test test program (NCF-121)

This commit is contained in:
Russ Rew 2012-01-07 23:24:53 +00:00
parent 77ee608a81
commit 2d46d44e96

View File

@ -100,10 +100,11 @@ test_nc_open(void)
error("nc_open of nonexistent file should have returned system error");
#endif
/* Open a file that is not a netCDF file. */
err = nc_open("nc_test.o", NC_NOWRITE, &ncid);/* should fail */
IF (err != NC_ENOTNC)
error("nc_open of non-netCDF file: status = %d", err);
/* Open a file that is not a netCDF file. But need a portable
* test that also works for cross-compiles ... */
/* err = nc_open("nc_test.o", NC_NOWRITE, &ncid);/\* should fail *\/ */
/* IF (err != NC_ENOTNC) */
/* error("nc_open of non-netCDF file: status = %d", err); */
/* Open a netCDF file in read-only mode, check that write fails */
err = nc_open(testfile, NC_NOWRITE, &ncid);