From e171f615247e832582c4806016dc58be7e2f2594 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Tue, 9 Aug 2011 15:24:03 +0200 Subject: [PATCH] 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. --- ChangeLog | 10 ++++++++++ tests/self-check-dir.test | 2 +- tests/self-check-exit.test | 14 ++++++++------ 3 files changed, 19 insertions(+), 7 deletions(-) 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 -- 2.47.3