diff options
author | jhendersonHDF <jhenderson@hdfgroup.org> | 2024-03-15 07:12:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-15 07:12:50 (GMT) |
commit | ca9c9428446b1a06eacca657f97df0fb27736510 (patch) | |
tree | 51d36c40f4170b651057a92bf613e06a99b3a9fa | |
parent | 004ab16dbcd4953cf423606c0aea93386e60b39f (diff) | |
download | hdf5-ca9c9428446b1a06eacca657f97df0fb27736510.zip hdf5-ca9c9428446b1a06eacca657f97df0fb27736510.tar.gz hdf5-ca9c9428446b1a06eacca657f97df0fb27736510.tar.bz2 |
Skip part of dsets.c test for IBM long double type (#4136)
-rw-r--r-- | test/dsets.c | 9 |
1 files changed, 9 insertions, 0 deletions
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) |