sh: Make sure the mail2.0 test can actually fail if $MAIL is not touched.

This commit is contained in:
Jilles Tjoelker 2010-02-08 18:57:18 +00:00
parent fafa9c3c9a
commit 91f2621cd1

@ -4,7 +4,7 @@
goodfile=/var/empty/sh-test-goodfile
mailfile=/var/empty/sh-test-mailfile
T=$(mktemp sh-test.XXXXXX) || exit
MAIL=$mailfile ktrace -i -f "$T" sh +m -i </dev/null >/dev/null 2>&1
ENV=$goodfile MAIL=$mailfile ktrace -i -f "$T" sh +m -i </dev/null >/dev/null 2>&1
if ! grep -q $goodfile "$T"; then
# ktrace problem
rc=0