diff options
author | Ray Lu <songyulu@hdfgroup.org> | 2019-01-08 23:59:03 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2019-01-18 22:30:25 (GMT) |
commit | 2bd5c6d529e5038f81575d59f3b2d1b36ec2abaa (patch) | |
tree | e72ba99a60bf1d1bd0eeb221618183c0a7922ca5 /config/cmake/ConversionTests.c | |
parent | d5c0a54878a418b6a0b581ef4d9a1c5abb463d46 (diff) | |
download | hdf5-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.c | 24 |
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 |