aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/testing.sh15
1 files changed, 12 insertions, 3 deletions
diff --git a/test/testing.sh b/test/testing.sh
index b0d95c35..dc7ba680 100755
--- a/test/testing.sh
+++ b/test/testing.sh
@@ -452,8 +452,13 @@ run_tests() {
452 echo "-------------------------------------------" 452 echo "-------------------------------------------"
453 reset_environment 453 reset_environment
454 if $test 454 if $test
455 then echo "OK: Expected success." 455 then
456 else echo "FAIL: Unexpected failure."; exit 1 456 echo "OK: Expected success."
457 else
458 if [ $? = 99 ]
459 then echo "FAIL: Unexpected crash!"; exit 99
460 fi
461 echo "FAIL: Unexpected failure."; exit 1
457 fi 462 fi
458 done 463 done
459 grep "^fail_$1.*(" < $testing_dir/testing.sh | cut -d'(' -f1 | while read test 464 grep "^fail_$1.*(" < $testing_dir/testing.sh | cut -d'(' -f1 | while read test
@@ -464,7 +469,11 @@ run_tests() {
464 reset_environment 469 reset_environment
465 if $test 470 if $test
466 then echo "FAIL: Unexpected success."; exit 1 471 then echo "FAIL: Unexpected success."; exit 1
467 else echo "OK: Expected failure." 472 else
473 if [ $? = 99 ]
474 then echo "FAIL: Unexpected crash!"; exit 99
475 fi
476 echo "OK: Expected failure."
468 fi 477 fi
469 done 478 done
470} 479}