summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/external_common.h5
-rw-r--r--test/external_env.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/test/external_common.h b/test/external_common.h
index 1e4fe7a..cc2b5fb 100644
--- a/test/external_common.h
+++ b/test/external_common.h
@@ -33,6 +33,11 @@ static const char *EXT_FNAME[] = {
NULL
};
+static const char *EXT_ENV_FNAME[] = {
+ "extern_env_dir/env_file_1",
+ NULL
+};
+
/* A similar collection of files is used for the tests that
* perform file I/O.
*/
diff --git a/test/external_env.c b/test/external_env.c
index a62e085..55f68be 100644
--- a/test/external_env.c
+++ b/test/external_env.c
@@ -56,10 +56,10 @@ test_path_env(hid_t fapl)
TESTING("prefix in HDF5_EXTFILE_PREFIX");
- if(HDmkdir("extern_dir", (mode_t)0755) < 0 && errno != EEXIST)
+ if(HDmkdir("extern_env_dir", (mode_t)0755) < 0 && errno != EEXIST)
TEST_ERROR;
- h5_fixname(EXT_FNAME[4], fapl, filename, sizeof(filename));
+ h5_fixname(EXT_ENV_FNAME[0], fapl, filename, sizeof(filename));
if((file = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl)) < 0)
FAIL_STACK_ERROR
@@ -194,7 +194,7 @@ main(void)
HDremove("extern_env_3w.raw");
HDremove("extern_env_4w.raw");
- HDrmdir("extern_dir");
+ HDrmdir("extern_env_dir");
} /* end if */
return EXIT_SUCCESS;