summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2005-02-25 20:26:32 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2005-02-25 20:26:32 (GMT)
commit82ae8ac4e0ec0929e432c99361e68f5f60cb5553 (patch)
tree8efddab33d3eed5be9d584e70f55f8dddacfb1f2 /test
parentcffc51b94c8536e89cab61e68b6122a0e186524a (diff)
downloadhdf5-82ae8ac4e0ec0929e432c99361e68f5f60cb5553.zip
hdf5-82ae8ac4e0ec0929e432c99361e68f5f60cb5553.tar.gz
hdf5-82ae8ac4e0ec0929e432c99361e68f5f60cb5553.tar.bz2
[svn-r10087] Purpose: New feature and test
Description: Somehow, the hardware conversions between "long double" and other native floating-point types were left out. Solution: Added the hardware conversion functions in H5Tconv.c and test cases in dtypes.c. Platforms tested: h5committest and fuss. Misc. update: updated MANIFEST to replace bin/reconfigure.sh with bin/reconfigure
Diffstat (limited to 'test')
-rw-r--r--test/dtypes.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/dtypes.c b/test/dtypes.c
index bf99433..c10fc15 100644
--- a/test/dtypes.c
+++ b/test/dtypes.c
@@ -7966,7 +7966,13 @@ main(void)
/* Test hardware floating-point conversion functions */
nerrors += test_conv_flt_1("hw", H5T_NATIVE_FLOAT, H5T_NATIVE_DOUBLE);
nerrors += test_conv_flt_1("hw", H5T_NATIVE_DOUBLE, H5T_NATIVE_FLOAT);
-
+#if H5_SIZEOF_LONG_DOUBLE!=H5_SIZEOF_DOUBLE
+ nerrors += test_conv_flt_1("hw", H5T_NATIVE_FLOAT, H5T_NATIVE_LDOUBLE);
+ nerrors += test_conv_flt_1("hw", H5T_NATIVE_DOUBLE, H5T_NATIVE_LDOUBLE);
+ nerrors += test_conv_flt_1("hw", H5T_NATIVE_LDOUBLE, H5T_NATIVE_FLOAT);
+ nerrors += test_conv_flt_1("hw", H5T_NATIVE_LDOUBLE, H5T_NATIVE_DOUBLE);
+#endif
+
/* Test hardware integer-float conversion functions */
nerrors += run_int_float_conv("hw");