From 3cb353e8832287b82d51fee0fe9d2a7130645aac Mon Sep 17 00:00:00 2001 From: MuQun Yang Date: Wed, 11 Oct 2006 17:32:26 -0500 Subject: [PATCH] [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. --- test/flush2.c | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/test/flush2.c b/test/flush2.c index 6c6ad85fbf..b8761bf432 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);