From: Stefano Lattarini Date: Tue, 9 Aug 2011 13:24:03 +0000 (+0200) Subject: testsuite: avoid spurious failure of self checks on Solaris X-Git-Tag: ng-0.5a~142 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e171f615247e832582c4806016dc58be7e2f2594;p=thirdparty%2Fautomake.git testsuite: avoid spurious failure of self checks on Solaris This is just a quick workaround to prevent having too much noise in the testsuite; more proper fixes have been committed into the 'testsuite-work' branch. * tests/self-check-dir.test: Relax a test to avoid unimportant failure on Solaris 10. * tests/self-check-exit.test: Likewise. --- diff --git a/ChangeLog b/ChangeLog index a8a671141..352371312 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2011-08-09 Stefano Lattarini + + testsuite: avoid spurious failure of self checks on Solaris + This is just a quick workaround to prevent having too much noise + in the testsuite; more proper fixes have been committed into the + 'testsuite-work' branch. + * tests/self-check-dir.test: Relax a test to avoid unimportant + failure on Solaris 10. + * tests/self-check-exit.test: Likewise. + 2011-08-08 Stefano Lattarini test defs: more environment cleanup diff --git a/tests/self-check-dir.test b/tests/self-check-dir.test index ba9fd292d..013528ea5 100755 --- a/tests/self-check-dir.test +++ b/tests/self-check-dir.test @@ -31,7 +31,7 @@ rm -f $this.tmp $SHELL -c " . ./defs || Exit 1 : > $this.tmp - case \`pwd\` in '`pwd`'/$this.dir);; *) Exit 1;; esac + case \`pwd\` in */$this.dir);; *) Exit 1;; esac " $this.test || outcome=false test -f $this.tmp && { rm -f $this.tmp; outcome=false; } diff --git a/tests/self-check-exit.test b/tests/self-check-exit.test index 73f3ea5f9..ca1af9b9a 100755 --- a/tests/self-check-exit.test +++ b/tests/self-check-exit.test @@ -39,12 +39,14 @@ for st in 1 2 3 4 5 77 99 126 127 128 129 130 255; do done -echo "* Try: non-existent-program" -$SHELL -c ". ./defs; non-existent-program; :" -rc=$? -echo "* rc=$rc" -echo -test $rc -eq 127 || exit 1 +# Disabled: some lesser shells such as Solaris /bin/sh might fail +# on this. +#echo "* Try: non-existent-program" +#$SHELL -c ". ./defs; non-existent-program; :" +#rc=$? +#echo "* rc=$rc" +#echo +#test $rc -eq 127 || exit 1 for sig in 1 2 13 15; do