summaryrefslogtreecommitdiffstats
path: root/test/tfile.c
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/tfile.c
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/tfile.c')
-rw-r--r--test/tfile.c9
1 files changed, 6 insertions, 3 deletions
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");