summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2013-03-22 22:29:55 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2013-03-22 22:29:55 (GMT)
commit865bf6bcb28273de759600a3e3ac4cd31e9788b4 (patch)
tree042d97eae71024f4440b8d492ddccb6f5df1a2e8 /test
parent8ffd55478e11904f193b4a98477b3bcb452b93ac (diff)
parent99b15244742caf98b5ff634f34d880fd0089d8d4 (diff)
downloadhdf5-865bf6bcb28273de759600a3e3ac4cd31e9788b4.zip
hdf5-865bf6bcb28273de759600a3e3ac4cd31e9788b4.tar.gz
hdf5-865bf6bcb28273de759600a3e3ac4cd31e9788b4.tar.bz2
[svn-r23435] ported revisions 23346:23432 from the trunk
Diffstat (limited to 'test')
-rw-r--r--test/tfile.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/tfile.c b/test/tfile.c
index e669bd0..ac2ef82 100644
--- a/test/tfile.c
+++ b/test/tfile.c
@@ -3084,7 +3084,7 @@ test_filespace_compatible(void)
VERIFY(free_space, (hssize_t)0, "H5Fget_freespace");
/* Get the file's file creation property list */
- /* Retrieve the file space handling stretegy and threshold */
+ /* Retrieve the file space handling strategy and threshold */
fcpl = H5Fget_create_plist(fid);
CHECK(fcpl, FAIL, "H5Fget_create_plist");
ret = H5Pget_file_space(fcpl, &strategy, &threshold);
@@ -3117,9 +3117,13 @@ test_filespace_compatible(void)
ret = H5Ldelete(fid, DSETNAME, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Ldelete");
- /* Close the file */
- ret = H5Fclose(fid);
- CHECK(ret, FAIL, "H5Fclose");
+ /* Close the plist */
+ ret = H5Pclose(fcpl);
+ CHECK(ret, FAIL, "H5Pclose");
+
+ /* Close the file */
+ ret = H5Fclose(fid);
+ CHECK(ret, FAIL, "H5Fclose");
/* Re-Open the file */
fid = H5Fopen(FILE5, H5F_ACC_RDONLY, H5P_DEFAULT);