diff options
| author | peter <peter@pmikkelsen.com> | 2026-09-26 18:00:37 +0000 |
|---|---|---|
| committer | peter <peter@pmikkelsen.com> | 2026-09-26 18:00:37 +0000 |
| commit | 1b9a3117c6d37ca9e31629a9f7014860ffb23d8c (patch) | |
| tree | 85b65ae0dd53d51a1b65aad377a74abce30d475d /tests/run_simple_test.sh | |
| parent | 405509a7db6a2c7da227a9a75f222e7d9b32f6b0 (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_simple_test.sh')
| -rwxr-xr-x | tests/run_simple_test.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/run_simple_test.sh b/tests/run_simple_test.sh index 6c1d56c..e6ffc3e 100755 --- a/tests/run_simple_test.sh +++ b/tests/run_simple_test.sh @@ -11,11 +11,19 @@ expected=${input%%/*} "./testbin-$program" "$1" status=$? +case $status in + 0|1) + ;; + *) + exit 99 + ;; +esac + case $expected in good) [ "$status" -eq 0 ] ;; bad) - [ "$status" -ne 0 ] + [ "$status" -eq 1 ] ;; esac |