summaryrefslogtreecommitdiffstats
path: root/test/dt_arith.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2009-08-21 19:00:38 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2009-08-21 19:00:38 (GMT)
commitb328dbbc31598b9e5d195b92b050f69b1f154629 (patch)
tree6ff283686c1713463f823520e5a2aaa9c094fe13 /test/dt_arith.c
parentd96910fe93972d48a8cfef0a44a57a803b07f031 (diff)
downloadhdf5-b328dbbc31598b9e5d195b92b050f69b1f154629.zip
hdf5-b328dbbc31598b9e5d195b92b050f69b1f154629.tar.gz
hdf5-b328dbbc31598b9e5d195b92b050f69b1f154629.tar.bz2
[svn-r17406] I added a condition check for the conversion from unsigned to float. When the configure
detects the conversion working, a macro is set. If there's problem with this conversion like Pathscale compiler, skip the test. Tested on jam. Need to verify it on pathscale machine.
Diffstat (limited to 'test/dt_arith.c')
-rw-r--r--test/dt_arith.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/dt_arith.c b/test/dt_arith.c
index abe56e8..43855a8 100644
--- a/test/dt_arith.c
+++ b/test/dt_arith.c
@@ -4890,7 +4890,9 @@ run_int_fp_conv(const char *name)
nerrors += test_conv_int_fp(name, TEST_NORMAL, H5T_NATIVE_LONG, H5T_NATIVE_FLOAT);
nerrors += test_conv_int_fp(name, TEST_NORMAL, H5T_NATIVE_LONG, H5T_NATIVE_DOUBLE);
+#if H5_ULONG_TO_FLOAT_ACCURATE
nerrors += test_conv_int_fp(name, TEST_NORMAL, H5T_NATIVE_ULONG, H5T_NATIVE_FLOAT);
+#endif
nerrors += test_conv_int_fp(name, TEST_NORMAL, H5T_NATIVE_ULONG, H5T_NATIVE_DOUBLE);
#endif