Skip to content

Commit

Permalink
Skip part of dsets.c test for IBM long double type (HDFGroup#4136)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhendersonHDF authored Mar 15, 2024
1 parent 004ab16 commit ca9c942
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/dsets.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
Expand Down

0 comments on commit ca9c942

Please sign in to comment.