diff options
author | Songyu Lu <songyulu@hdfgroup.org> | 2019-01-08 02:28:37 (GMT) |
---|---|---|
committer | Songyu Lu <songyulu@hdfgroup.org> | 2019-01-08 02:28:37 (GMT) |
commit | 75c105a2a442b9a0cd42d7aa1e95da55ae8e4804 (patch) | |
tree | 717122a86f3eb3aa679de88d25447dd0ce663b11 /config/cmake/ConversionTests.c | |
parent | 7bf6d847ae36940f1b1147820356795c7764dbeb (diff) | |
download | hdf5-75c105a2a442b9a0cd42d7aa1e95da55ae8e4804.zip hdf5-75c105a2a442b9a0cd42d7aa1e95da55ae8e4804.tar.gz hdf5-75c105a2a442b9a0cd42d7aa1e95da55ae8e4804.tar.bz2 |
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 |