summaryrefslogtreecommitdiffstats
path: root/test/dt_arith.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2009-08-21 18:57:10 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2009-08-21 18:57:10 (GMT)
commit5c839af9203286bda31b14d36dd43f4d80ae1fe5 (patch)
tree953cb57e04c5263b8cd7cba8f0294697b0327f52 /test/dt_arith.c
parentd591ac4bf79dde02ceea8d16dbe9e601da99757a (diff)
downloadhdf5-5c839af9203286bda31b14d36dd43f4d80ae1fe5.zip
hdf5-5c839af9203286bda31b14d36dd43f4d80ae1fe5.tar.gz
hdf5-5c839af9203286bda31b14d36dd43f4d80ae1fe5.tar.bz2
[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.
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