summaryrefslogtreecommitdiff
path: root/tests/run_script_test.sh
diff options
context:
space:
mode:
authorpeter <peter@pmikkelsen.com>2026-09-26 18:00:37 +0000
committerpeter <peter@pmikkelsen.com>2026-09-26 18:00:37 +0000
commit1b9a3117c6d37ca9e31629a9f7014860ffb23d8c (patch)
tree85b65ae0dd53d51a1b65aad377a74abce30d475d /tests/run_script_test.sh
parent405509a7db6a2c7da227a9a75f222e7d9b32f6b0 (diff)
Improve the failure simulation test/code.
Right now, a lot of test cases fail because if this. Next up: fixing them :) FossilOrigin-Name: 6dd2985bcae86ed3f7c5651e2ce7bc848b80516bf4c1d5482b6095c18dfcc058
Diffstat (limited to 'tests/run_script_test.sh')
-rwxr-xr-xtests/run_script_test.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/run_script_test.sh b/tests/run_script_test.sh
index cef7add..9e7d085 100755
--- a/tests/run_script_test.sh
+++ b/tests/run_script_test.sh
@@ -9,9 +9,17 @@ ext=${input##*.}
check()
{
status=$1
+ case $status in
+ 0|1)
+ ;;
+ *)
+ exit 99
+ ;;
+ esac
+
case $expected in
bad)
- [ "$status" -ne 0 ]
+ [ "$status" -eq 1 ]
;;
*)
[ "$status" -eq 0 ]