From: Jean Privat Date: Wed, 18 Jun 2014 15:05:30 +0000 (-0400) Subject: tests: teach a res file to contains `UNDEFINED` and always match X-Git-Tag: v0.6.6~23^2~3 X-Git-Url: http://nitlanguage.org tests: teach a res file to contains `UNDEFINED` and always match Signed-off-by: Jean Privat --- diff --git a/tests/tests.sh b/tests/tests.sh index 1c42a68..c89adf7 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -59,6 +59,7 @@ function compare_to_result() local pattern="$1" local sav="$2" if [ ! -r "$sav" ]; then return 0; fi + test "`cat "$sav"`" = "UNDEFINED" && return 1 diff -u "$sav" "out/$pattern.res" > "out/$pattern.diff.sav.log" if [ "$?" == 0 ]; then return 1