From 59f299b826bca122e94b4b325f0bccb03a2c3bd2 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Sat, 31 Mar 2001 22:29:33 -0500 Subject: [svn-r3747] Purpose: Portability tweaks Description: Certain features (signal for FPE, some assertions, etc) used in testing are not available in certain non-UNIX platforms. Solution: Ifdef'd out the test code on the platforms which don't have that support. Platforms tested: FreeBSD 4.3 (hawkwind) --- test/dtypes.c | 2 ++ test/enum.c | 2 ++ test/iopipe.c | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/test/dtypes.c b/test/dtypes.c index 5cfb08b..872e102 100644 --- a/test/dtypes.c +++ b/test/dtypes.c @@ -3231,7 +3231,9 @@ test_conv_flt_1 (const char *name, hid_t src, hid_t dst) * The remainder of this function is executed only by the child if * HANDLE_SIGFPE is defined. */ +#ifndef __WATCOMC__ signal(SIGFPE,fpe_handler); +#endif /* What are the names of the source and destination types */ if (H5Tequal(src, H5T_NATIVE_FLOAT)) { diff --git a/test/enum.c b/test/enum.c index 5921ef1..3fc78ee 100644 --- a/test/enum.c +++ b/test/enum.c @@ -207,7 +207,9 @@ test_tr1(hid_t file) if (H5Tenum_insert(m_type, "WHITE", CPTR(eval, E1_WHITE))<0) goto error; if (H5Tenum_insert(m_type, "BLACK", CPTR(eval, E1_BLACK))<0) goto error; +#ifndef __WATCOMC__ assert(sizeof(c_e1)==sizeof(int)); +#endif /* __WATCOMCC__ */ if ((f_type = H5Tcreate(H5T_ENUM, sizeof(c_e1)))<0) goto error; if (H5Tenum_insert(f_type, "RED", CPTR(ival, 105))<0) goto error; if (H5Tenum_insert(f_type, "GREEN", CPTR(ival, 104))<0) goto error; diff --git a/test/iopipe.c b/test/iopipe.c index d359ed8..152626e 100644 --- a/test/iopipe.c +++ b/test/iopipe.c @@ -151,7 +151,11 @@ synchronize (void) { #ifdef H5_HAVE_SYSTEM #ifdef WIN32 +#ifdef __WATCOMC__ + flushall(); +#else /* __WATCOMC__ */ _flushall(); +#endif /* __WATCOMC__ */ #else system ("sync"); system ("df >/dev/null"); -- cgit v0.12