diff options
Diffstat (limited to 'test/links.c')
-rw-r--r-- | test/links.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/links.c b/test/links.c index 81c185d..006bf37 100644 --- a/test/links.c +++ b/test/links.c @@ -8,6 +8,7 @@ * Purpose: Tests hard and soft (symbolic) links. */ #include <hdf5.h> +#include <stdlib.h> #define TEST_FILE_NAME "links.h5" @@ -29,8 +30,11 @@ static void cleanup(void) { - remove(TEST_FILE_NAME); + if (!getenv ("HDF5_NOCLEANUP")) { + remove(TEST_FILE_NAME); + } } + /*------------------------------------------------------------------------- * Function: main |