From 205d52260849b513817f97397b5f2c1a51e77ba4 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Wed, 18 Jun 2014 11:05:30 -0400 Subject: [PATCH] tests: teach a res file to contains `UNDEFINED` and always match Signed-off-by: Jean Privat --- tests/tests.sh | 1 + 1 file changed, 1 insertion(+) 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 -- 1.7.9.5