summaryrefslogtreecommitdiffstats
path: root/test/mount.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-06-01 21:20:10 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-06-01 21:20:10 (GMT)
commit45bbf45250734eda45794d5fc5bcfde4454d734b (patch)
tree9925e40d4ccb5bfdc9904e29f9bb1297bf1330ea /test/mount.c
parent3f84e6478518a288a3a22d4385b114527a2d5b6e (diff)
downloadhdf5-45bbf45250734eda45794d5fc5bcfde4454d734b.zip
hdf5-45bbf45250734eda45794d5fc5bcfde4454d734b.tar.gz
hdf5-45bbf45250734eda45794d5fc5bcfde4454d734b.tar.bz2
[svn-r10837] Purpose:
Bug fix/new feature Description: Setting "SEMI" or "STRONG" file close degrees causes problems when multiple file IDs exist for the same file on disk. Solution: Make the "SEMI" and "STRONG" settings only apply to the file ID that is being closed. Also, add an "H5F_OBJ_LOCAL" flag for the H5Fget_obj_count() & H5Fget_obj_ids() calls, so that applications can query about objects opened with a particular file ID instead of all the objects opened in the file on disk. Platforms tested: FreeBSD 4.11 (sleipnir) h5committest
Diffstat (limited to 'test/mount.c')
-rw-r--r--test/mount.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/test/mount.c b/test/mount.c
index ac8212e..7a42790 100644
--- a/test/mount.c
+++ b/test/mount.c
@@ -712,7 +712,7 @@ test_unlink(hid_t fapl)
} H5E_END_TRY;
if (status>=0) {
H5_FAILED();
- puts(" Unmount by name should not have been allowed!");
+ printf(" %d: Unmount by name should not have been allowed!\n",__LINE__);
goto error;
}
H5E_BEGIN_TRY {
@@ -720,7 +720,7 @@ test_unlink(hid_t fapl)
} H5E_END_TRY;
if (status>=0) {
H5_FAILED();
- puts(" Unmount by name should not have been allowed!");
+ printf(" %d: Unmount by name should not have been allowed!\n",__LINE__);
goto error;
}
if (H5Funmount(mnt, ".")<0) goto error;
@@ -916,27 +916,27 @@ test_uniformity(hid_t fapl)
/* Build the virtual file */
if ((file1=H5Fopen(filename1, H5F_ACC_RDWR, fapl))<0 ||
(file2=H5Fopen(filename2, H5F_ACC_RDWR, fapl))<0)
- goto error;
- if (H5Fmount(file1, "/mnt1", file2, H5P_DEFAULT)<0) goto error;
+ TEST_ERROR;
+ if (H5Fmount(file1, "/mnt1", file2, H5P_DEFAULT)<0) TEST_ERROR;
/* Access some things from the file1 handle */
- if (H5Gget_objinfo(file1, "/", TRUE, NULL)<0) goto error;
- if (H5Gget_objinfo(file1, "/mnt1", TRUE, NULL)<0) goto error;
- if (H5Gget_objinfo(file1, "mnt1", TRUE, NULL)<0) goto error;
- if (H5Gget_objinfo(file1, "/mnt1/file2", TRUE, NULL)<0) goto error;
- if (H5Gget_objinfo(file1, "mnt1/file2", TRUE, NULL)<0) goto error;
+ if (H5Gget_objinfo(file1, "/", TRUE, NULL)<0) TEST_ERROR;
+ if (H5Gget_objinfo(file1, "/mnt1", TRUE, NULL)<0) TEST_ERROR;
+ if (H5Gget_objinfo(file1, "mnt1", TRUE, NULL)<0) TEST_ERROR;
+ if (H5Gget_objinfo(file1, "/mnt1/file2", TRUE, NULL)<0) TEST_ERROR;
+ if (H5Gget_objinfo(file1, "mnt1/file2", TRUE, NULL)<0) TEST_ERROR;
/* Access the same things from the file2 handle */
- if (H5Gget_objinfo(file2, "/", TRUE, NULL)<0) goto error;
- if (H5Gget_objinfo(file2, "/mnt1", TRUE, NULL)<0) goto error;
- if (H5Gget_objinfo(file2, "mnt1", TRUE, NULL)<0) goto error;
- if (H5Gget_objinfo(file2, "/mnt1/file2", TRUE, NULL)<0) goto error;
- if (H5Gget_objinfo(file2, "mnt1/file2", TRUE, NULL)<0) goto error;
+ if (H5Gget_objinfo(file2, "/", TRUE, NULL)<0) TEST_ERROR;
+ if (H5Gget_objinfo(file2, "/mnt1", TRUE, NULL)<0) TEST_ERROR;
+ if (H5Gget_objinfo(file2, "mnt1", TRUE, NULL)<0) TEST_ERROR;
+ if (H5Gget_objinfo(file2, "/mnt1/file2", TRUE, NULL)<0) TEST_ERROR;
+ if (H5Gget_objinfo(file2, "mnt1/file2", TRUE, NULL)<0) TEST_ERROR;
/* Shut down */
- if (H5Funmount(file1, "/mnt1")<0) goto error;
- if (H5Fclose(file1)<0) goto error;
- if (H5Fclose(file2)<0) goto error;
+ if (H5Funmount(file1, "/mnt1")<0) TEST_ERROR;
+ if (H5Fclose(file1)<0) TEST_ERROR;
+ if (H5Fclose(file2)<0) TEST_ERROR;
PASSED();
return 0;