From 66b4d3889c3c8644c009eb6778ba0b6ba4552b27 Mon Sep 17 00:00:00 2001 From: Raymond Lu Date: Mon, 29 Jun 2009 13:17:21 -0500 Subject: [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. --- test/tattr.c | 8 ++++---- 1 file 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); -- cgit v0.12