summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2009-06-29 18:24:00 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2009-06-29 18:24:00 (GMT)
commit2a6efe9e106e13d522957e12184d09dc9159bd91 (patch)
tree74056de1b7534f252cd35d6c98a20e5f7c278d03
parentc0f0e7c4198de81d1d19c3a2e1a973380409737f (diff)
downloadhdf5-2a6efe9e106e13d522957e12184d09dc9159bd91.zip
hdf5-2a6efe9e106e13d522957e12184d09dc9159bd91.tar.gz
hdf5-2a6efe9e106e13d522957e12184d09dc9159bd91.tar.bz2
[svn-r17127] A revision from last round of checkin (r17124). 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 only. I have tested the same change for the trunk.
-rw-r--r--test/tattr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/tattr.c b/test/tattr.c
index 72936cf..a4a41a2 100644
--- a/test/tattr.c
+++ b/test/tattr.c
@@ -10160,8 +10160,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 */
@@ -10180,14 +10180,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);