Add concept of expected-failure.

This commit is contained in:
Martin Pool
2002-01-11 08:01:05 +00:00
parent f08aacf7d6
commit be2f866b4c
2 changed files with 15 additions and 0 deletions

View File

@@ -209,6 +209,13 @@ do
skipped=`expr $skipped + 1`
discard_scratch
;;
78)
# It failed, but we expected that. don't dump out error logs,
# because most users won't want to see them. But do leave
# the working directory around.
echo "XFAIL $testbase"
failed=`expr $failed + 1`
;;
*)
echo "FAIL $testbase"
echo "----- $testbase failed: log follows"

View File

@@ -222,5 +222,13 @@ test_fail() {
exit 1
}
# It failed, but we expected that. don't dump out error logs,
# because most users won't want to see them. But do leave
# the working directory around.
test_xfail() {
echo "$@" >&2
exit 78
}
# be reproducible
umask 077