Disable job control when running 'sh -i' in the testsuite.

Job control tty manipulations sometimes cause the tests to stop (SIGTTOU
and the like) when run from the 'prove' tool.
This commit is contained in:
Jilles Tjoelker 2009-11-29 22:58:10 +00:00
parent e1ef314121
commit 772e9b41df
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ T=$(mktemp -d sh-test.XXXXXX)
cd $T
mkfifo input output error
HISTFILE=/dev/null sh -i <input >output 2>error &
HISTFILE=/dev/null sh +m -i <input >output 2>error &
{
# Syntax error
echo ')' >&3

View File

@ -1,4 +1,4 @@
# $FreeBSD$
echo 'echo `for` echo ".BAD"CODE.' | sh -i 2>&1 | grep -q BADCODE && exit 1
echo 'echo `for` echo ".BAD"CODE.' | sh +m -i 2>&1 | grep -q BADCODE && exit 1
exit 0