summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJacob Smith <jake.smith@hdfgroup.org>2018-12-11 22:42:36 (GMT)
committerJacob Smith <jake.smith@hdfgroup.org>2018-12-11 23:45:12 (GMT)
commit496de6922fb13aa11a5c5efe56a3f8de157a77ad (patch)
treea37a42c9fa5f579177e219dc7d38cd88a65cbcff /test
parentf1825f0d26b545f59511dae833c72782da31680b (diff)
downloadhdf5-496de6922fb13aa11a5c5efe56a3f8de157a77ad.zip
hdf5-496de6922fb13aa11a5c5efe56a3f8de157a77ad.tar.gz
hdf5-496de6922fb13aa11a5c5efe56a3f8de157a77ad.tar.bz2
change test file name and apply 'h5_fixname' to it
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.am2
-rw-r--r--test/tfile.c9
2 files changed, 7 insertions, 4 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index 2b2faae..80e9c76 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -165,7 +165,7 @@ CHECK_CLEANFILES+=accum.h5 cmpd_dset.h5 compact_dataset.h5 dataset.h5 dset_offse
extend.h5 istore.h5 extlinks*.h5 frspace.h5 links*.h5 \
sys_file1 tfile[1-7].h5 th5s[1-4].h5 lheap.h5 fheap.h5 ohdr.h5 \
stab.h5 extern_[1-5].h5 extern_[1-4][rw].raw gheap[0-4].h5 \
- ohdr_min_a.h5 ohdr_min_b.h5 \
+ ohdr_min_a.h5 ohdr_min_b.h5 min_dset_ohdr_testfile.h5\
dt_arith[1-2] links.h5 links[0-6]*.h5 extlinks[0-15].h5 tmp \
big.data big[0-9][0-9][0-9][0-9][0-9].h5 \
stdio.h5 sec2.h5 dtypes[0-9].h5 dtypes1[0].h5 dt_arith[1-2].h5 tattr.h5 \
diff --git a/test/tfile.c b/test/tfile.c
index 96e469c..619320a 100644
--- a/test/tfile.c
+++ b/test/tfile.c
@@ -7062,7 +7062,8 @@ test_incr_filesize(void)
static void
test_min_dset_ohdr(void)
{
- const char my_filename[] = "some_arbitrary_filename";
+ const char _filename[] = "min_dset_ohdr_testfile";
+ char filename[FILENAME_LEN] = "";
hid_t file_id = -1;
hid_t file2_id = -1;
hbool_t minimize;
@@ -7073,8 +7074,10 @@ test_min_dset_ohdr(void)
/* SETUP */
/*********/
+ h5_fixname(_filename, H5P_DEFAULT, filename, sizeof(filename));
+
file_id = H5Fcreate(
- my_filename,
+ filename,
H5F_ACC_TRUNC,
H5P_DEFAULT,
H5P_DEFAULT);
@@ -7111,7 +7114,7 @@ test_min_dset_ohdr(void)
* TEST second file open on same filename
*/
file2_id = H5Fopen(
- my_filename,
+ filename,
H5F_ACC_RDWR,
H5P_DEFAULT);
CHECK_I(file2_id, "H5Fopen");