From 75ae56f04be065936501f579ad1aa999f5b19b3b Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Sat, 12 Nov 2011 22:24:36 +0100 Subject: [PATCH] maintcheck: fix spurious failure in 'color2.test' * tests/color2.test: Avoid creative quoting to avoid a spurious failure of the `sc_tests_Exit_not_exit' maintainer check. --- ChangeLog | 6 ++++++ tests/color2.test | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8934813..3cccebc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2011-11-12 Stefano Lattarini + maintcheck: fix spurious failure in 'color2.test' + * tests/color2.test: Avoid creative quoting to avoid a spurious + failure of the `sc_tests_Exit_not_exit' maintainer check. + +2011-11-12 Stefano Lattarini + tests: fix spurious error in 'uninstall-fail.test' on Solaris * tests/uninstall-fail.test: Solaris 10 /usr/xpg4/bin/sh can add a line number before the `:' in the error messages issued by shell diff --git a/tests/color2.test b/tests/color2.test index 2217d88..bc97313 100755 --- a/tests/color2.test +++ b/tests/color2.test @@ -39,7 +39,8 @@ case `echo "$std" | grep .` in esac # This test requires a working a working `expect' program. -(set +e; expect -c "exit 77"; test $? -eq 77) \ +# Creative quoting required to avoid spurious maintainer-check failure. +(set +e; expect -c 'exit ''77'; test $? -eq 77) \ || skip_ "requires a working expect program" # Also, if the $MAKE program fails to consider the standard output as a -- 2.7.4