summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSongyu Lu <songyulu@hdfgroup.org>2019-02-13 17:25:07 (GMT)
committerSongyu Lu <songyulu@hdfgroup.org>2019-02-13 17:25:07 (GMT)
commitdfedd864335fab2a676357c6647bd09aeb26575d (patch)
tree094b1f86b6281bed5be4995bfd876aa096d7aab5 /test
parent4e31361dad4add06792b652dbe5b97e501f9031d (diff)
downloadhdf5-dfedd864335fab2a676357c6647bd09aeb26575d.zip
hdf5-dfedd864335fab2a676357c6647bd09aeb26575d.tar.gz
hdf5-dfedd864335fab2a676357c6647bd09aeb26575d.tar.bz2
Changing functions H5Dcreate and H5Dopen to H5Dcreate2 and H5Dopen2 for backward compatibility.
Diffstat (limited to 'test')
-rw-r--r--test/tvlstr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/tvlstr.c b/test/tvlstr.c
index 58713e7..2c552eb 100644
--- a/test/tvlstr.c
+++ b/test/tvlstr.c
@@ -880,9 +880,9 @@ static void test_write_same_element(void)
fspace = H5Screate_simple(SPACE1_RANK, fdim, NULL);
CHECK(fspace, FAIL, "H5Screate_simple");
- dataset1 = H5Dcreate(file1, DATASET, dtype, fspace, H5P_DEFAULT,
+ dataset1 = H5Dcreate2(file1, DATASET, dtype, fspace, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT);
- CHECK(dataset1, FAIL, "H5Dcreate");
+ CHECK(dataset1, FAIL, "H5Dcreate2");
ret = H5Dwrite(dataset1, dtype, H5S_ALL, H5S_ALL, H5P_DEFAULT, wdata);
CHECK(ret, FAIL, "H5Dwrite");
@@ -905,8 +905,8 @@ static void test_write_same_element(void)
file1 = H5Fopen(DATAFILE3, H5F_ACC_RDWR, H5P_DEFAULT);
CHECK(file1, FAIL, "H5Fopen");
- dataset1 = H5Dopen(file1, DATASET, H5P_DEFAULT);
- CHECK(dataset1, FAIL, "H5Dopen");
+ dataset1 = H5Dopen2(file1, DATASET, H5P_DEFAULT);
+ CHECK(dataset1, FAIL, "H5Dopen2");
fspace = H5Dget_space(dataset1);
CHECK(fspace, FAIL, "H5Dget_space");