diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/runtest.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/runtest.sh b/scripts/runtest.sh index 8da1089e..7f9e8b92 100644 --- a/scripts/runtest.sh +++ b/scripts/runtest.sh @@ -86,6 +86,10 @@ testing() echo -ne "$5" | eval "$2" > actual RETVAL=$? + # Catch segfaults + [ $RETVAL -gt 128 ] && [ $RETVAL -lt 255 ] && + echo "exited with signal (or returned $RETVAL)" >> actual + cmp expected actual > /dev/null 2>&1 if [ $? -ne 0 ] then |