mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-04-12 18:10:24 +08:00
Remove windows incompatibility in nc_test test program (NCF-121)
This commit is contained in:
parent
77ee608a81
commit
2d46d44e96
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user