mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
more test development
This commit is contained in:
parent
1a1f537c26
commit
85994847b2
@ -246,10 +246,13 @@ main(int argc, char **argv)
|
||||
/* Open the file and check it. */
|
||||
{
|
||||
int ndims, nvars;
|
||||
int storage_in;
|
||||
|
||||
if (nc_open(FILE_NAME, NC_NOWRITE, &ncid)) ERR;
|
||||
if (nc_inq(ncid, &ndims, &nvars, NULL, NULL)) ERR;
|
||||
if (ndims != 1 || nvars != 1) ERR;
|
||||
if (nc_inq_var_chunking(ncid, varid, &storage_in, NULL)) ERR;
|
||||
if (storage_in != NC_COMPACT) ERR;
|
||||
if (nc_close(ncid)) ERR;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user