summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xtools/test.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/test.sh b/tools/test.sh
index 2dcbf6a..b6c94ac 100755
--- a/tools/test.sh
+++ b/tools/test.sh
@@ -35,7 +35,10 @@ if [ $res = 0 ]; then
printf "\033[32mPASSED\033[0m\n"
else
printf "\033[31mFAILED\033[0m\n"
- diff <(echo $out) <(echo $rout)
+ if [ "$status" != "$rstatus" ]; then
+ printf "exit: $rstatus (should be $status)\n"
+ fi
+ diff -Nau <(printf "%s\n" "$out") <(printf "%s\n" "$rout")
fi
exit $res