diff options
author | Songyu Lu <songyulu@hdfgroup.org> | 2019-07-29 16:22:20 (GMT) |
---|---|---|
committer | Songyu Lu <songyulu@hdfgroup.org> | 2019-07-29 16:22:20 (GMT) |
commit | f7cc189609f046ccf1b145fae7b97c70b535e137 (patch) | |
tree | 325c4ec63ea78154d2bfb7d7613f5d661e2763b7 /test/external_common.c | |
parent | 59d7db40a72142b9027748e762f4b2e8038aefa9 (diff) | |
download | hdf5-f7cc189609f046ccf1b145fae7b97c70b535e137.zip hdf5-f7cc189609f046ccf1b145fae7b97c70b535e137.tar.gz hdf5-f7cc189609f046ccf1b145fae7b97c70b535e137.tar.bz2 |
1. Updated the commands for compiling two new tests (external_env.c and vds_env.c).
2. Changed the data file names for external.c and external_env.c to avoid potential name conflict.
Diffstat (limited to 'test/external_common.c')
-rw-r--r-- | test/external_common.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/external_common.c b/test/external_common.c index e43a713..c9b6584 100644 --- a/test/external_common.c +++ b/test/external_common.c @@ -35,7 +35,7 @@ *------------------------------------------------------------------------- */ herr_t -reset_raw_data_files(void) +reset_raw_data_files(hbool_t is_env) { int fd = 0; /* external file descriptor */ size_t i, j; /* iterators */ @@ -59,7 +59,10 @@ reset_raw_data_files(void) for(i = 0; i < N_EXT_FILES; i++) { /* Open file */ - HDsprintf(filename, "extern_%lur.raw", (unsigned long)i + 1); + if(is_env) + HDsprintf(filename, "extern_env_%lur.raw", (unsigned long)i + 1); + else + HDsprintf(filename, "extern_%lur.raw", (unsigned long)i + 1); if((fd = HDopen(filename, O_RDWR|O_CREAT|O_TRUNC, H5_POSIX_CREATE_MODE_RW)) < 0) goto error; @@ -93,7 +96,10 @@ reset_raw_data_files(void) for(i = 0; i < N_EXT_FILES; i++) { /* Open file */ - HDsprintf(filename, "extern_%luw.raw", (unsigned long)i + 1); + if(is_env) + HDsprintf(filename, "extern_env_%luw.raw", (unsigned long)i + 1); + else + HDsprintf(filename, "extern_%luw.raw", (unsigned long)i + 1); if((fd = HDopen(filename, O_RDWR|O_CREAT|O_TRUNC, H5_POSIX_CREATE_MODE_RW)) < 0) goto error; |