]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
test: don't hang waiting for Solaris lex/yacc to read from stdin.
authorBruno Haible <bruno@clisp.org>
Sun, 31 Dec 2023 23:27:15 +0000 (15:27 -0800)
committerKarl Berry <karl@freefriends.org>
Sun, 31 Dec 2023 23:27:15 +0000 (15:27 -0800)
From https://bugs.gnu.org/68165.

* t/get-sysconf.sh: Don't let $LEX or $YACC read from stdin when
trying --version and --help. Only lex --version hangs, but may
as well avoid it in general.

t/get-sysconf.sh

index f448e85852dc5a3907849d8de0d9bae342262a96..0f50f7b9a868dc41d23f03308d64062a91edab61 100644 (file)
@@ -56,10 +56,10 @@ libtoolize --help || :
 # It's OK if the selected Lex and Yacc programs don't know how to print
 # the version number or the help screen; those are usually available only
 # for Flex and Bison.
-$LEX --version || :
-$LEX --help || :
-$YACC --version || :
-$YACC --help || :
+$LEX --version </dev/null || :
+$LEX --help </dev/null || :
+$YACC --version </dev/null || :
+$YACC --help </dev/null || :
 
 cat "$am_top_builddir/config.log" || st=1
 cat "$am_top_builddir/bin/aclocal-$APIVERSION" || st=1