summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2011-07-19 20:20:01 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2011-07-19 20:20:01 (GMT)
commit338fdac20dc8bbc09aa1701f092fe28013aa6aa7 (patch)
tree4cea001f686305a7d9ddceb4bbcce4d5ce4d9504 /test
parenta777619a6b556aeb8365f874099c1a1f42ef3466 (diff)
downloadhdf5-338fdac20dc8bbc09aa1701f092fe28013aa6aa7.zip
hdf5-338fdac20dc8bbc09aa1701f092fe28013aa6aa7.tar.gz
hdf5-338fdac20dc8bbc09aa1701f092fe28013aa6aa7.tar.bz2
[svn-r21124] Issue 2763 - adding OAPL_ID as a new parameter to H5Rdereference. A followup commit for r21117. I made 2 changes:
1. Quincey changed H5P_DATASET_ACCESS_DEFAULT to H5P_DEFAULT for the tests that call H5Rdereference. Inside H5R_dereference, I assigned H5P_DATASET_ACCESS_DEFAULT to OAPL_ID if it is H5P_DEFAULT. 2. I added the test for invalid OAPL_ID in trefer.c. Tested on jam, koala, heiwa.
Diffstat (limited to 'test')
-rw-r--r--test/trefer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/trefer.c b/test/trefer.c
index 8d255a5..53f7b92 100644
--- a/test/trefer.c
+++ b/test/trefer.c
@@ -186,6 +186,8 @@ test_reference_params(void)
/* Test parameters to H5Rdereference */
dset2 = H5Rdereference2(-1, H5P_DEFAULT, H5R_OBJECT, &rbuf[0]);
VERIFY(dset2, FAIL, "H5Rdereference2 loc_id");
+ dset2 = H5Rdereference2(dataset, -1, H5R_OBJECT, &rbuf[0]);
+ VERIFY(dset2, FAIL, "H5Rdereference2 oapl_id");
dset2 = H5Rdereference2(dataset, dapl_id, H5R_OBJECT, NULL);
VERIFY(dset2, FAIL, "H5Rdereference2 ref");
dset2 = H5Rdereference2(dataset, dapl_id, H5R_MAXTYPE, &rbuf[0]);