summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSongyu Lu <songyulu@hdfgroup.org>2019-01-08 20:31:41 (GMT)
committerSongyu Lu <songyulu@hdfgroup.org>2019-01-08 20:31:41 (GMT)
commitb02de315b93ac29d2483a91d526b110a25073505 (patch)
tree9fbbf9f80dc7d8690ad7e85b74c6dfcab5f055e2 /test
parent2efc28cf635f2b50be52cad05f5f2e1a17ecb585 (diff)
downloadhdf5-b02de315b93ac29d2483a91d526b110a25073505.zip
hdf5-b02de315b93ac29d2483a91d526b110a25073505.tar.gz
hdf5-b02de315b93ac29d2483a91d526b110a25073505.tar.bz2
NNSA Tri-LabsTRILAB-98: Another two test cases out.
Diffstat (limited to 'test')
-rw-r--r--test/dt_arith.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/test/dt_arith.c b/test/dt_arith.c
index e31d341..2729ba1 100644
--- a/test/dt_arith.c
+++ b/test/dt_arith.c
@@ -4883,7 +4883,24 @@ run_fp_tests(const char *name)
#if H5_SIZEOF_LONG_DOUBLE!=H5_SIZEOF_DOUBLE && H5_SIZEOF_LONG_DOUBLE!=0
nerrors += test_conv_flt_1(name, TEST_DENORM, H5T_NATIVE_FLOAT, H5T_NATIVE_LDOUBLE);
nerrors += test_conv_flt_1(name, TEST_DENORM, H5T_NATIVE_DOUBLE, H5T_NATIVE_LDOUBLE);
+#ifndef H5_DISABLE_SOME_LDOUBLE_CONV
nerrors += test_conv_flt_1(name, TEST_DENORM, H5T_NATIVE_LDOUBLE, H5T_NATIVE_FLOAT);
+#else
+ {
+ char str[256]; /*string */
+
+ HDsnprintf(str, sizeof(str), "Testing %s denormalized %s -> %s conversions",
+ name, "long double", "float");
+ printf("%-70s", str);
+ SKIPPED();
+#if H5_SIZEOF_LONG_DOUBLE!=0
+ HDputs(" Test skipped due to the conversion problem on IBM ppc64le cpu.");
+#else
+ HDputs(" Test skipped due to disabled long double.");
+#endif
+ }
+#endif
+
nerrors += test_conv_flt_1(name, TEST_DENORM, H5T_NATIVE_LDOUBLE, H5T_NATIVE_DOUBLE);
#endif
@@ -5124,7 +5141,7 @@ run_fp_int_conv(const char *name)
}
#if H5_SIZEOF_LONG!=H5_SIZEOF_INT && H5_SIZEOF_LONG_DOUBLE!=0
#ifndef H5_LDOUBLE_TO_LONG_SPECIAL
- if(test_values != TEST_SPECIAL) {
+ if(test_values != TEST_SPECIAL && test_values != TEST_NORMAL) {
nerrors += test_conv_int_fp(name, test_values, H5T_NATIVE_LDOUBLE, H5T_NATIVE_LONG);
nerrors += test_conv_int_fp(name, test_values, H5T_NATIVE_LDOUBLE, H5T_NATIVE_ULONG);
} else {