summaryrefslogtreecommitdiffstats
path: root/config/cmake/ConversionTests.c
diff options
context:
space:
mode:
authorRay Lu <songyulu@hdfgroup.org>2019-01-08 23:59:03 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2019-01-18 22:30:25 (GMT)
commit2bd5c6d529e5038f81575d59f3b2d1b36ec2abaa (patch)
treee72ba99a60bf1d1bd0eeb221618183c0a7922ca5 /config/cmake/ConversionTests.c
parentd5c0a54878a418b6a0b581ef4d9a1c5abb463d46 (diff)
downloadhdf5-2bd5c6d529e5038f81575d59f3b2d1b36ec2abaa.zip
hdf5-2bd5c6d529e5038f81575d59f3b2d1b36ec2abaa.tar.gz
hdf5-2bd5c6d529e5038f81575d59f3b2d1b36ec2abaa.tar.bz2
Merge pull request #1450 in HDFFV/hdf5 from ~SONGYULU/hdf5_ray:TRILAB-98-dt_arith-and-cpp_testhdf5-tests to develop
* commit 'b02de315b93ac29d2483a91d526b110a25073505': NNSA Tri-LabsTRILAB-98: Another two test cases out. NNSA Tri-Labs TRILAB-98: Taking out a few more test cases. NNSA Tri-Labs TRILAB-98 dt_arith and cpp_testhdf5 tests fail on sierra.llnl.gov: According to the group decision, simply provide a macro to disable some failing test cases on sierra (IBM power9 cpu). All failing cases involve long double data type.
Diffstat (limited to 'config/cmake/ConversionTests.c')
-rw-r--r--config/cmake/ConversionTests.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/config/cmake/ConversionTests.c b/config/cmake/ConversionTests.c
index c2748b2..6d597a0 100644
--- a/config/cmake/ConversionTests.c
+++ b/config/cmake/ConversionTests.c
@@ -287,3 +287,27 @@ main ()
#endif
+#ifdef H5_DISABLE_SOME_LDOUBLE_CONV_TEST
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+int HDF_NO_UBSAN main(void)
+{
+ FILE *fp;
+ char cpu[64];
+
+ fp = popen("uname -m", "r");
+
+ fgets(cpu, sizeof(cpu)-1, fp);
+
+ pclose(fp);
+
+ if(strncmp(cpu, "ppc64le", 7) == 0)
+ return 0;
+
+ return 1;
+}
+
+#endif