diff options
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 |