summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-11-29 04:44:28 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-11-29 04:44:28 (GMT)
commitce05f32a3d33fad5401b6d1d291676771fc300dd (patch)
tree5f6477a8e166d056dc85365ab2cf55e2ed0e46c4 /test
parent2f3344a0495c09448e7fac023c8d91a567110a48 (diff)
downloadhdf5-ce05f32a3d33fad5401b6d1d291676771fc300dd.zip
hdf5-ce05f32a3d33fad5401b6d1d291676771fc300dd.tar.gz
hdf5-ce05f32a3d33fad5401b6d1d291676771fc300dd.tar.bz2
[svn-r12995] Description:
Make the memory size of the max. compact & min. dense attribute storage variables align with the property list size, instead of the size on disk, to better handle big-endian machines. Tested on: FreeBSD/32 4.11 (sleipnir) Linux/32 2.4 (heping) Linux/64 2.4 (mir) AIX/32 5.? (copper)
Diffstat (limited to 'test')
-rw-r--r--test/th5o.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/th5o.c b/test/th5o.c
index ad12e30..8d89966 100644
--- a/test/th5o.c
+++ b/test/th5o.c
@@ -654,6 +654,36 @@ test_h5o_plist(void)
ret = H5Sclose(dspace);
CHECK(ret, FAIL, "H5Sclose");
+ /* Close current creation property lists */
+ ret = H5Pclose(gcpl);
+ CHECK(ret, FAIL, "H5Pclose");
+ ret = H5Pclose(dcpl);
+ CHECK(ret, FAIL, "H5Pclose");
+ ret = H5Pclose(tcpl);
+ CHECK(ret, FAIL, "H5Pclose");
+
+ /* Retrieve each object's creation property list */
+ gcpl = H5Gget_create_plist(grp);
+ CHECK(gcpl, FAIL, "H5Gget_create_plist");
+ tcpl = H5Tget_create_plist(dtype);
+ CHECK(dcpl, FAIL, "H5Tget_create_plist");
+ dcpl = H5Dget_create_plist(dset);
+ CHECK(dcpl, FAIL, "H5Dget_create_plist");
+
+ /* Retrieve attribute phase change values on each creation property list and verify */
+ ret = H5Pget_attr_phase_change(gcpl, &max_compact, &min_dense);
+ CHECK(ret, FAIL, "H5Pget_attr_phase_change");
+ VERIFY(max_compact, (def_max_compact + 1), "H5Pget_attr_phase_change");
+ VERIFY(min_dense, (def_min_dense - 1), "H5Pget_attr_phase_change");
+ ret = H5Pget_attr_phase_change(dcpl, &max_compact, &min_dense);
+ CHECK(ret, FAIL, "H5Pget_attr_phase_change");
+ VERIFY(max_compact, (def_max_compact + 1), "H5Pget_attr_phase_change");
+ VERIFY(min_dense, (def_min_dense - 1), "H5Pget_attr_phase_change");
+ ret = H5Pget_attr_phase_change(tcpl, &max_compact, &min_dense);
+ CHECK(ret, FAIL, "H5Pget_attr_phase_change");
+ VERIFY(max_compact, (def_max_compact + 1), "H5Pget_attr_phase_change");
+ VERIFY(min_dense, (def_min_dense - 1), "H5Pget_attr_phase_change");
+
/* Close current objects */
ret = H5Pclose(gcpl);
CHECK(ret, FAIL, "H5Pclose");