summaryrefslogtreecommitdiffstats
path: root/test/flush2.c
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2006-10-11 22:32:26 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2006-10-11 22:32:26 (GMT)
commit3cb353e8832287b82d51fee0fe9d2a7130645aac (patch)
treec26986e9fae8c7ee5dc64d93c76aea57f85bb48d /test/flush2.c
parentc69d0bd40b1661eac14106ef142a615d04b1c4e7 (diff)
downloadhdf5-3cb353e8832287b82d51fee0fe9d2a7130645aac.zip
hdf5-3cb353e8832287b82d51fee0fe9d2a7130645aac.tar.gz
hdf5-3cb353e8832287b82d51fee0fe9d2a7130645aac.tar.bz2
[svn-r12748] _exit() function for Windows DLL cannot immediately terminate the calling process.
So new flush2 tests generates false failures for DLL version on windows. Two cases of flush2 tests were skipped temporarily on windows. The inserted windows macros should be removed when a better solution is found. Tested on vs6.0 and vs 7.1 and Linux.
Diffstat (limited to 'test/flush2.c')
-rw-r--r--test/flush2.c21
1 files changed, 17 insertions, 4 deletions
diff --git a/test/flush2.c b/test/flush2.c
index 6c6ad85..b8761bf 100644
--- a/test/flush2.c
+++ b/test/flush2.c
@@ -196,8 +196,14 @@ main(void)
PASSED()
else
{
- H5_FAILED()
- goto error;
+#if defined WIN32 && defined _HDF5USEDLL_
+ SKIPPED();
+ puts(" DLL will flush the file even when calling _exit, skip this test temporarily");
+
+#else
+ H5_FAILED()
+ goto error;
+#endif
}
H5Eset_auto_stack(H5E_DEFAULT, func, NULL);
@@ -212,8 +218,15 @@ main(void)
PASSED()
else
{
- H5_FAILED()
- goto error;
+#if defined WIN32 && defined _HDF5USEDLL_
+ SKIPPED();
+ puts(" DLL will flush the file even when calling _exit, skip this test temporarily");
+
+#else
+ H5_FAILED()
+ goto error;
+#endif
+
}
H5Eset_auto_stack(H5E_DEFAULT, func, NULL);