summaryrefslogtreecommitdiffstats
path: root/c++/test
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-04-14 22:21:54 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-04-14 22:21:54 (GMT)
commit2521c4084c06f078846fe06bb1d3cd7bfa506316 (patch)
tree466b9213c163d812778434bba2097705b423e799 /c++/test
parent3468ff3a5c4f6c384801edef9ae52ecc4f2de3c5 (diff)
downloadhdf5-2521c4084c06f078846fe06bb1d3cd7bfa506316.zip
hdf5-2521c4084c06f078846fe06bb1d3cd7bfa506316.tar.gz
hdf5-2521c4084c06f078846fe06bb1d3cd7bfa506316.tar.bz2
[svn-r12254] Purpose:
Anti-feature Description: Revert changes to H5G_stat_t struct, to make it compatible with the 1.6.x branch again. The information that was added to the H5G_stat_t struct will be reported through other API routines. Platforms tested: FreeBSD 4.11 (sleipnir) w/C++ Linux 2.4/64 (mir) w/C++ & Fortran Solaris 2.9 (shanti)
Diffstat (limited to 'c++/test')
-rw-r--r--c++/test/tattr.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/c++/test/tattr.cpp b/c++/test/tattr.cpp
index 9051f3f..7768952 100644
--- a/c++/test/tattr.cpp
+++ b/c++/test/tattr.cpp
@@ -1051,7 +1051,7 @@ test_attr_dtype_shared(void)
// Check reference count on named datatype */
fid1.getObjinfo(TYPE1_NAME, statbuf);
- verify_val(statbuf.u.obj.nlink, 1, "DataType::getObjinfo", __LINE__, __FILE__);
+ verify_val(statbuf.nlink, 1, "DataType::getObjinfo", __LINE__, __FILE__);
// Create dataspace for dataset */
DataSpace dspace;
@@ -1061,14 +1061,14 @@ test_attr_dtype_shared(void)
// Check reference count on named datatype */
fid1.getObjinfo(TYPE1_NAME, statbuf);
- verify_val(statbuf.u.obj.nlink, 2, "H5File::getObjinfo", __LINE__, __FILE__);
+ verify_val(statbuf.nlink, 2, "H5File::getObjinfo", __LINE__, __FILE__);
// Create attribute on dataset */
Attribute attr = dset.createAttribute(ATTR1_NAME,dtype,dspace);
// Check reference count on named datatype */
fid1.getObjinfo(TYPE1_NAME, statbuf);
- verify_val(statbuf.u.obj.nlink, 3, "DataSet::getObjinfo", __LINE__, __FILE__);
+ verify_val(statbuf.nlink, 3, "DataSet::getObjinfo", __LINE__, __FILE__);
// Close attribute */
attr.close();
@@ -1078,14 +1078,14 @@ test_attr_dtype_shared(void)
// Check reference count on named datatype */
fid1.getObjinfo(TYPE1_NAME, statbuf);
- verify_val(statbuf.u.obj.nlink, 2, "DataSet::getObjinfo after DataSet::removeAttr", __LINE__, __FILE__);
+ verify_val(statbuf.nlink, 2, "DataSet::getObjinfo after DataSet::removeAttr", __LINE__, __FILE__);
// Create attribute on dataset */
attr = dset.createAttribute(ATTR1_NAME,dtype,dspace);
// Check reference count on named datatype */
fid1.getObjinfo(TYPE1_NAME, statbuf);
- verify_val(statbuf.u.obj.nlink, 3, "DataSet::createAttribute", __LINE__, __FILE__);
+ verify_val(statbuf.nlink, 3, "DataSet::createAttribute", __LINE__, __FILE__);
// Write data into the attribute */
attr.write(PredType::NATIVE_INT,&data);
@@ -1116,14 +1116,14 @@ test_attr_dtype_shared(void)
// Check reference count on named datatype */
fid1.getObjinfo(TYPE1_NAME, statbuf);
- verify_val(statbuf.u.obj.nlink, 3, "DataSet::openAttribute", __LINE__, __FILE__);
+ verify_val(statbuf.nlink, 3, "DataSet::openAttribute", __LINE__, __FILE__);
// Unlink the dataset */
fid1.unlink(DSET1_NAME);
// Check reference count on named datatype */
fid1.getObjinfo(TYPE1_NAME, statbuf);
- verify_val(statbuf.u.obj.nlink, 1, "H5File::unlink", __LINE__, __FILE__);
+ verify_val(statbuf.nlink, 1, "H5File::unlink", __LINE__, __FILE__);
// Unlink the named datatype */
fid1.unlink(TYPE1_NAME);