]> git.ipfire.org Git - thirdparty/autoconf.git/commit
Avoid a spurious test failure with shells that ignore write errors.
authorZack Weinberg <zack@owlfolio.org>
Fri, 22 Dec 2023 13:47:36 +0000 (08:47 -0500)
committerZack Weinberg <zack@owlfolio.org>
Fri, 22 Dec 2023 13:47:36 +0000 (08:47 -0500)
commite5d98f4c74b5e9f0125a07810ad79e3a66914d33
treed9ff27a7aa136a075c28010f01aa5c92e1f1479f
parent3fbfb13e7a846e98fa931b2bce373b5b2364a11b
Avoid a spurious test failure with shells that ignore write errors.

In a surprisingly large number of cases, the ‘printf’ shell utility
doesn’t report errors caused by writing to stdout.  This can cause
a spurious test failure on systems that have this bug in ‘printf’
and also have /dev/full.  Detect such systems and skip that subtest.

Problem reported by Alan Coopersmith.

* tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
  If /bin/sh’s printf doesn’t report an error on writing to /dev/full,
  skip the subtests that write to /dev/full.
tests/torture.at