mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-03 08:01:25 +08:00
fixed extra-tests problem with diskless API
This commit is contained in:
parent
d58c18c623
commit
dee7087f97
@ -11,13 +11,6 @@ COPYRIGHT file for copying and redistribution conditions.
|
||||
#include "ncddispatch.h"
|
||||
#include "ncdispatch.h"
|
||||
|
||||
/* This is to track opened HDF5 objects to make sure they are
|
||||
* closed. */
|
||||
#ifdef EXTRA_TESTS
|
||||
extern int num_plists;
|
||||
extern int num_spaces;
|
||||
#endif /* EXTRA_TESTS */
|
||||
|
||||
#define MIN_DEFLATE_LEVEL 0
|
||||
#define MAX_DEFLATE_LEVEL 9
|
||||
|
||||
@ -519,16 +512,6 @@ NCD_inq(int ncid, int *ndimsp, int *nvarsp, int *nattsp, int *unlimdimidp)
|
||||
return NC_NOERR;
|
||||
}
|
||||
|
||||
#ifdef EXTRA_TESTS
|
||||
int
|
||||
nc_exit()
|
||||
{
|
||||
if (num_plists || num_spaces)
|
||||
return NC_EHDFERR;
|
||||
|
||||
return NC_NOERR;
|
||||
}
|
||||
#endif /* EXTRA_TESTS */
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user