summaryrefslogtreecommitdiffstats
path: root/test/vfd.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-07-05 21:58:50 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-07-05 21:58:50 (GMT)
commit12d84d4b12f4b43dc3a399fe3ffe8a8a15797b23 (patch)
tree4591ba2fe3d7fd860686310aea85715def56d81f /test/vfd.c
parent4ca9441078b3a51cec7272a6600c32eac9a5f4af (diff)
downloadhdf5-12d84d4b12f4b43dc3a399fe3ffe8a8a15797b23.zip
hdf5-12d84d4b12f4b43dc3a399fe3ffe8a8a15797b23.tar.gz
hdf5-12d84d4b12f4b43dc3a399fe3ffe8a8a15797b23.tar.bz2
[svn-r11022] Purpose:
Bug fix & code cleanup Description: Don't unmount child files from a parent file if the parent file is being held open by an object. Also, moved the mounting routines into their own source file and the superblock routines into their own file also. Solution: Moved the code for unmounting child files down in the H5F_close routine and also add checks to the file and group mounting code to unmount child files when the last object holding open a file closes. Platforms tested: FreeBSD 4.11 (sleipnir) h5committest
Diffstat (limited to 'test/vfd.c')
-rw-r--r--test/vfd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/vfd.c b/test/vfd.c
index 16038c3..f8e2c3d 100644
--- a/test/vfd.c
+++ b/test/vfd.c
@@ -451,10 +451,12 @@ error:
static herr_t
test_family_compat(void)
{
+#ifdef H5_WANT_H5_V1_6_COMPAT
hid_t file=(-1), fapl;
char filename[1024];
char pathname[1024];
char *srcdir = getenv("srcdir"); /*where the src code is located*/
+#endif /*H5_WANT_H5_V1_6_COMPAT*/
TESTING("FAMILY file driver backward compatibility");