mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-04-12 18:10:24 +08:00
starting to test repeated redefs
This commit is contained in:
parent
933a8979c1
commit
5e41f33685
@ -497,6 +497,10 @@ test_redef(int format)
|
||||
if (strcmp(var_name, REDEF_VAR2_NAME) || xtype_in != NC_BYTE || ndims != REDEF_NDIMS ||
|
||||
dimids_in[0] != dimids[0] || dimids_in[1] != dimids[1]) ERR;
|
||||
|
||||
/* Try enddef/redef. */
|
||||
if (nc_enddef(ncid)) ERR;
|
||||
if (nc_redef(ncid)) ERR;
|
||||
|
||||
/* Close it up. */
|
||||
if (format != NC_FORMAT_NETCDF4)
|
||||
if (nc_enddef(ncid)) ERR;
|
||||
|
Loading…
x
Reference in New Issue
Block a user