summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2018-12-12 12:53:26 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2018-12-12 12:53:26 (GMT)
commitdeb7d2fb9714acc8222815328f71b0aae7e74275 (patch)
tree56b62bb0828813485243da86ee13569b3e2572c2 /test
parent6f52793adcd5a14aa63731e3c33c9737b5a04d16 (diff)
downloadhdf5-deb7d2fb9714acc8222815328f71b0aae7e74275.zip
hdf5-deb7d2fb9714acc8222815328f71b0aae7e74275.tar.gz
hdf5-deb7d2fb9714acc8222815328f71b0aae7e74275.tar.bz2
Use version 2 functions in test file to address compile errors for
--with-default-api-version=v16 option.
Diffstat (limited to 'test')
-rw-r--r--test/tvlstr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tvlstr.c b/test/tvlstr.c
index 68d1070..da6195c 100644
--- a/test/tvlstr.c
+++ b/test/tvlstr.c
@@ -880,7 +880,7 @@ 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");
@@ -905,7 +905,7 @@ 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);
+ dataset1 = H5Dopen2(file1, DATASET, H5P_DEFAULT);
CHECK(dataset1, FAIL, "H5Dopen");
fspace = H5Dget_space(dataset1);