Commit 96a2795a authored by Niels Möller's avatar Niels Möller

(test_fail, test_success): Call exit.

(werror, die): New functions.

Rev: src/testsuite/functions.sh:1.20.2.1
parent b7dc6a55
......@@ -52,10 +52,21 @@ test_result=1
test_fail () {
test_result=1
exit
}
test_success () {
test_result=0
exit
}
werror () {
echo 1>&2 "$1"
}
die () {
werror "$1"
test_fail
}
trap 'eval "$ATEXIT ; exit \$test_result"' 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment