summaryrefslogtreecommitdiffstats
path: root/test/th5s.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2011-04-22 20:17:28 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2011-04-22 20:17:28 (GMT)
commit8116ae4f78b450609fc53e4e28e9ab9b7da9f5e4 (patch)
tree66079aef0be0c92b98ec369779ff7c03b085db66 /test/th5s.c
parent2a7a8ae232cd712c1e3ce3aab7c3d48f8666f503 (diff)
downloadhdf5-8116ae4f78b450609fc53e4e28e9ab9b7da9f5e4.zip
hdf5-8116ae4f78b450609fc53e4e28e9ab9b7da9f5e4.tar.gz
hdf5-8116ae4f78b450609fc53e4e28e9ab9b7da9f5e4.tar.bz2
[svn-r20608] OpenVMS complainted about a test case in th5o.c which opened the same file twice. VMS doesn't allow it. I used the macro H5_CANNOT_OPEN_TWICE to skip the test case. In th5s.c, I created an attribute but fogot to close it in the test case for zero dimension size.
Tested on amani, jam. But I haven't tested on OpenVMS yet.
Diffstat (limited to 'test/th5s.c')
-rw-r--r--test/th5s.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/th5s.c b/test/th5s.c
index a5ef605..e9f8ef4 100644
--- a/test/th5s.c
+++ b/test/th5s.c
@@ -935,6 +935,10 @@ test_h5s_zero_dim(void)
}
}
+ /* Close attribute */
+ ret = H5Aclose(attr);
+ CHECK(ret, FAIL, "H5Aclose");
+
/*===============================================================
* Extend the dimension to make it a normal dataspace (3x15x13).
* Verify that data can be written to and read from the chunked