mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-22 15:47:37 +00:00
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:
parent
e1ef314121
commit
772e9b41df
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=199955
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user