]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
test: disable use of ksh in a test that would otherwise hang
authorJim Meyering <meyering@fb.com>
Sun, 11 Jul 2021 20:42:16 +0000 (13:42 -0700)
committerJim Meyering <meyering@fb.com>
Mon, 12 Jul 2021 02:13:42 +0000 (19:13 -0700)
* t/tests-environment-fd-redirect.sh: This test would hang when
using ksh93 from Fedora 34 and CentOS 8.  Comments demonstrate
the issue reported as https://github.com/ksh93/ksh/issues/316

t/tests-environment-fd-redirect.sh

index e7159c7918fdd461ae5e80f9511eb847d2e1123e..a39a984f1eeba734fde2e311835238665d76c91f 100644 (file)
@@ -70,6 +70,15 @@ case $SHELL in
 esac
 
 for sh in "$SHELL" "$bin_ksh"; do
+
+  # The following hangs with Fedora 34's ksh-20120801-255:
+  # (seq --format=z%g= 121; echo "eval ': \`(set) 2>&1\`'")|env -i ksh
+  # yet terminates if it emits one fewer variable assignment.
+  # Using that ksh here would make this test hang: the above is
+  # derived from the configure script generated for this test.
+  # Reported as https://github.com/ksh93/ksh/issues/316
+  case $sh in */ksh) skip_ "skipping $sh to avoid hang"; continue;; esac
+
   test "$sh" = : && continue
   for pfx in AM_ ''; do
     unindent > Makefile.am <<END