summaryrefslogtreecommitdiffstats
path: root/test/enum.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-04-01 03:29:33 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-04-01 03:29:33 (GMT)
commit59f299b826bca122e94b4b325f0bccb03a2c3bd2 (patch)
treef8eb1d80180d812d3f168e31db11945f0013b420 /test/enum.c
parent4650caa3a614a291936be3ac668dbc1baecb0c79 (diff)
downloadhdf5-59f299b826bca122e94b4b325f0bccb03a2c3bd2.zip
hdf5-59f299b826bca122e94b4b325f0bccb03a2c3bd2.tar.gz
hdf5-59f299b826bca122e94b4b325f0bccb03a2c3bd2.tar.bz2
[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)
Diffstat (limited to 'test/enum.c')
-rw-r--r--test/enum.c2
1 files changed, 2 insertions, 0 deletions
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;