summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSongyu Lu <songyulu@hdfgroup.org>2019-04-23 21:40:02 (GMT)
committerSongyu Lu <songyulu@hdfgroup.org>2019-04-23 21:40:02 (GMT)
commit562e8ec915c18f14390558399186aba7e3ead9c1 (patch)
treee397a4d214494903f87b30d66002a0ab91a43370 /test
parent544a36e75e5766cc1e40bc7408cd795e7ce38bde (diff)
downloadhdf5-562e8ec915c18f14390558399186aba7e3ead9c1.zip
hdf5-562e8ec915c18f14390558399186aba7e3ead9c1.tar.gz
hdf5-562e8ec915c18f14390558399186aba7e3ead9c1.tar.bz2
Changing file names and directory names to avoid possible conflict during parallel 'make check'.
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;