summaryrefslogtreecommitdiffstats
path: root/testpar
diff options
context:
space:
mode:
authorRichard Warren <Richard.Warren@hdfgroup.org>2018-05-26 19:43:01 (GMT)
committerRichard Warren <Richard.Warren@hdfgroup.org>2018-05-26 19:43:01 (GMT)
commitebba927ffdd15461eb9fd9df3d486482ea5c4b90 (patch)
tree6ca5b54a396bb3cc856c8e3c3fedecaf4c634c4d /testpar
parente1a7e7b4f3b0a3072d0979425dbb8ee9e5e9c809 (diff)
downloadhdf5-inactive/parallel_vds.zip
hdf5-inactive/parallel_vds.tar.gz
hdf5-inactive/parallel_vds.tar.bz2
Some fixes from Neil plus changes talked about in our last code reviewinactive/parallel_vds
Diffstat (limited to 'testpar')
-rw-r--r--testpar/t_pvds.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/testpar/t_pvds.c b/testpar/t_pvds.c
index 0d0b197..1b81557 100644
--- a/testpar/t_pvds.c
+++ b/testpar/t_pvds.c
@@ -1849,10 +1849,6 @@ test_basic_io(unsigned config, hid_t fapl)
TEST_ERROR
} /* end if */
- /* Close copied virtual file */
- if(H5Fclose(vfile2) < 0)
- TEST_ERROR
- vfile2 = -1;
} /* end if */
/* Close */
@@ -1871,6 +1867,12 @@ test_basic_io(unsigned config, hid_t fapl)
if(H5Fclose(vfile) < 0)
TEST_ERROR
vfile = -1;
+
+ /* Close copied virtual file */
+ if((vfile2 != -1) && (H5Fclose(vfile2) < 0))
+ TEST_ERROR
+ vfile2 = -1;
+
if(H5Sclose(srcspace[0]) < 0)
TEST_ERROR
srcspace[0] = -1;