* tests/uninstall-fail.test: All the Solaris 10 shells (/bin/sh, /bin/ksh, and /usr/xpg4/bin/sh), upon failing to chdir to a directory with the `cd' builtin, print a message like: "sh: /root: permission denied" which doesn't report the `cd' builtin anywhere. Relax the grepping of the error message accordingly. --- ChangeLog | 10 ++++++++++ tests/uninstall-fail.test | 5 +++-- 2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog index 6d63637..16f72e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2011-10-20 Stefano Lattarini <stefano.lattar...@gmail.com> + + tests: avoid spurious failure of 'uninstall-fail.test' on Solaris + * tests/uninstall-fail.test: All the Solaris 10 shells (/bin/sh, + /bin/ksh, and /usr/xpg4/bin/sh), upon failing to chdir to a + directory with the `cd' builtin, print a message like: + "sh: /root: permission denied" + which doesn't report the `cd' builtin anywhere. Relax the grepping + of the error message accordingly. + 2011-10-19 Stefano Lattarini <stefano.lattar...@gmail.com> tests: avoid spurious failure of 'uninstall-fail.test' on Cygwin diff --git a/tests/uninstall-fail.test b/tests/uninstall-fail.test index a57b665..14a843b 100755 --- a/tests/uninstall-fail.test +++ b/tests/uninstall-fail.test @@ -60,7 +60,8 @@ chmod a-rwx $inst/share $MAKE uninstall >output 2>&1 && { cat output; Exit 1; } cat output -grep "cd: .*$inst/share" output - +# Some shells, like Solaris 10 /bin/sh and /bin/ksh, do not report +# the name of the `cd' builtin upon a chdir error. +$EGREP "(cd|sh): .*$inst/share" output : -- 1.7.2.3