The *printf-posix tests depend on the 'nan' and 'snan' modules. The unit
tests of these modules, in turn, depend on several fenv-* and fpe-tracking
modules, which are CPU dependent. I don't think it's wise to include these
tests in tarballs of arbitrary packages like coreutils or gettext:
Tarballs may be in use 5 or 10 years from now, and when they contain
these tests, they may well fail on CPUs that do not exist yet.

Therefore, here it a patch that cuts the module dependency chain at the
'nan' and 'snan' tests.


2023-11-18  Bruno Haible  <br...@clisp.org>

        nan, snan tests: Don't include these tests by default.
        * modules/nan-tests (Status): Mark the test as unportable.
        * modules/snan-tests (Status): Likewise.

diff --git a/modules/nan-tests b/modules/nan-tests
index ec549b8919..9229a9467c 100644
--- a/modules/nan-tests
+++ b/modules/nan-tests
@@ -3,6 +3,9 @@ tests/test-nan-1.c
 tests/test-nan-2.c
 tests/macros.h
 
+Status:
+unportable-test
+
 Depends-on:
 fenv-exceptions-tracking-c99
 fpe-trapping
diff --git a/modules/snan-tests b/modules/snan-tests
index 6779f6c0bf..1c373ccac7 100644
--- a/modules/snan-tests
+++ b/modules/snan-tests
@@ -5,6 +5,9 @@ tests/test-snan-2.c
 tests/macros.h
 m4/math_h.m4
 
+Status:
+unportable-test
+
 Depends-on:
 fenv-exceptions-tracking-c99
 fpe-trapping




Reply via email to