diff options
author | Jacob Smith <jake.smith@hdfgroup.org> | 2018-12-18 17:32:00 (GMT) |
---|---|---|
committer | Jacob Smith <jake.smith@hdfgroup.org> | 2018-12-18 17:50:58 (GMT) |
commit | 5efc08a06d34ceab3de1766cb651ac8978deed16 (patch) | |
tree | 22c4840dcc2ffe053abe1df5dad6c893b6a8af60 /test/dsets.c | |
parent | 61350bf3504272dcf6e264b02812283d2d993218 (diff) | |
parent | aadebc1b7eefa1ef0954b30f109f288f79452998 (diff) | |
download | hdf5-5efc08a06d34ceab3de1766cb651ac8978deed16.zip hdf5-5efc08a06d34ceab3de1766cb651ac8978deed16.tar.gz hdf5-5efc08a06d34ceab3de1766cb651ac8978deed16.tar.bz2 |
Merge branch 'develop' into dset_ohdr_minimize
Diffstat (limited to 'test/dsets.c')
-rw-r--r-- | test/dsets.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/dsets.c b/test/dsets.c index 395a98a..706d941 100644 --- a/test/dsets.c +++ b/test/dsets.c @@ -86,6 +86,9 @@ const char *FILENAME[] = { NULL }; +#define OHMIN_FILENAME_A "ohdr_min_a" + + #define FILENAME_BUF_SIZE 1024 #define KB 1024 @@ -13067,6 +13070,7 @@ test_object_header_minimization_dcpl(void) { hid_t dcpl_id = -1; hid_t file_id = -1; + char filename[FILENAME_BUF_SIZE] = ""; hbool_t minimize = FALSE; TESTING("dcpl flags to minimize dataset object header"); @@ -13075,7 +13079,10 @@ test_object_header_minimization_dcpl(void) /* SETUP */ /*********/ - file_id = H5Fcreate("some_arbitrary_filename", H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); + if(NULL == h5_fixname(OHMIN_FILENAME_A, H5P_DEFAULT, filename, sizeof(filename))) + FAIL_PUTS_ERROR("unable to prepare filename") + + file_id = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); if (0 > file_id) FAIL_PUTS_ERROR("unable to create test file\n"); |