summaryrefslogtreecommitdiffstats
path: root/test/tattr.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2009-06-29 18:17:21 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2009-06-29 18:17:21 (GMT)
commit66b4d3889c3c8644c009eb6778ba0b6ba4552b27 (patch)
tree7459e16a9d8593aac403e33431fa01184939d461 /test/tattr.c
parent1846ea8d506737a97d95623cc9fdacb6af8e2d72 (diff)
downloadhdf5-66b4d3889c3c8644c009eb6778ba0b6ba4552b27.zip
hdf5-66b4d3889c3c8644c009eb6778ba0b6ba4552b27.tar.gz
hdf5-66b4d3889c3c8644c009eb6778ba0b6ba4552b27.tar.bz2
[svn-r17126] A revision from last round of checkin (r17119). H5Aopen_name has been deprecated. I
replaced it with H5Aopen in this round. I also updated some hard-coded numbers with some macros. Tested on jam, linew, and smirom.
Diffstat (limited to 'test/tattr.c')
-rw-r--r--test/tattr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/tattr.c b/test/tattr.c
index 5eb378f..20e8091 100644
--- a/test/tattr.c
+++ b/test/tattr.c
@@ -10156,8 +10156,8 @@ test_attr_bug6(hid_t fcpl, hid_t fapl)
hid_t gid; /* Group ID */
hid_t aid1, aid2; /* Attribute IDs */
hid_t sid; /* Dataspace ID */
- hsize_t dims[1] = {5}; /* Attribute dimensions */
- int intar[5]; /* Data reading buffer */
+ hsize_t dims[ATTR1_RANK] = {ATTR1_DIM1}; /* Attribute dimensions */
+ int intar[ATTR1_DIM1]; /* Data reading buffer */
herr_t ret; /* Generic return status */
/* Output message about test being performed */
@@ -10176,14 +10176,14 @@ test_attr_bug6(hid_t fcpl, hid_t fapl)
CHECK(sid, FAIL, "H5Screate_simple");
/* Create attribute on group */
- aid1 = H5Acreate2(gid, "attr", H5T_NATIVE_INT, sid, H5P_DEFAULT, H5P_DEFAULT);
+ aid1 = H5Acreate2(gid, ATTR1_NAME, H5T_NATIVE_INT, sid, H5P_DEFAULT, H5P_DEFAULT);
CHECK(aid1, FAIL, "H5Acreate2");
ret = H5Aclose(aid1);
CHECK(ret, FAIL, "H5Aclose");
/* Open the attribute again */
- aid2 = H5Aopen_name(gid, "attr");
+ aid2 = H5Aopen(gid, ATTR1_NAME, H5P_DEFAULT);
CHECK(aid2, FAIL, "H5Aopen_name");
ret = H5Aread(aid2, H5T_NATIVE_INT, intar);