From 1b9a3117c6d37ca9e31629a9f7014860ffb23d8c Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 26 Sep 2026 18:00:37 +0000 Subject: Improve the failure simulation test/code. Right now, a lot of test cases fail because if this. Next up: fixing them :) FossilOrigin-Name: 6dd2985bcae86ed3f7c5651e2ce7bc848b80516bf4c1d5482b6095c18dfcc058 --- tests/run_script_test.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tests/run_script_test.sh') 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 ] -- cgit v1.2.3