From 5c839af9203286bda31b14d36dd43f4d80ae1fe5 Mon Sep 17 00:00:00 2001 From: Raymond Lu Date: Fri, 21 Aug 2009 13:57:10 -0500 Subject: [svn-r17405] 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. --- test/dt_arith.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v0.12