From ca9c9428446b1a06eacca657f97df0fb27736510 Mon Sep 17 00:00:00 2001 From: jhendersonHDF Date: Fri, 15 Mar 2024 02:12:50 -0500 Subject: Skip part of dsets.c test for IBM long double type (#4136) --- test/dsets.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/dsets.c b/test/dsets.c index efd95f6..5fa74f9 100644 --- a/test/dsets.c +++ b/test/dsets.c @@ -5899,6 +5899,14 @@ test_floattypes(hid_t file) if ((datatype = H5Tcopy(H5T_NATIVE_LDOUBLE)) < 0) goto error; + /* Skip creating a custom floating-point type when long double + * is the IBM long double. The library detects different formats + * for the type on big-endian vs. little-endian systems and will + * cause this to fail on little-endian systems while passing on + * big-endian systems. The library needs proper support for the + * IBM long double type before we can test this. + */ +#if LDBL_MANT_DIG != 106 /* Get the layout of the native long double type */ if (H5Tget_fields(datatype, &ld_spos, &ld_epos, &ld_esize, &ld_mpos, &ld_msize) < 0) goto error; @@ -5919,6 +5927,7 @@ test_floattypes(hid_t file) if (H5Tset_size(datatype, 16) < 0) goto error; } +#endif /* Create the data space */ if ((space = H5Screate_simple(2, size, NULL)) < 0) -- cgit v0.12