* tests/tap-signal.test (signal_caught): Fix a regression from
commit `
v1.11-1052-gd630a0d' that was causing this test to fail
spuriously on Solaris (due to an already worked-around Solaris
/bin/sh bug, see commit `
v1.11-981-g0ef3ef5').
+2011-08-22 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ testsuite: avoid spurious failure on Solaris
+ * tests/tap-signal.test (signal_caught): Fix a regression from
+ commit `v1.11-1052-gd630a0d' that was causing this test to fail
+ spuriously on Solaris (due to an already worked-around Solaris
+ /bin/sh bug, see commit `v1.11-981-g0ef3ef5').
+
2011-08-22 Stefano Lattarini <stefano.lattarini@gmail.com>
testsuite: use the new awk+shell TAP driver in our own testsuite
shell) rx="$pfx_re .*terminated by signal $sig_re$wbound_re";;
*) fatal_ "invalid \$am_tap_implementation '$am_tap_implementation'";;
esac
- if LC_ALL=C $EGREP "$rx" stdout; then
- return 0
- elif test $have_solaris_bug = yes; then
- case $symbolic in
- INT|TERM)
- $EGREP "$pfx_re - exited with status 208( |$)" stdout;;
- esac
- fi
+ LC_ALL=C $EGREP "$rx" stdout && return 0
+ case $have_solaris_bug,$symbolic in
+ yes,INT|yes,TERM)
+ $EGREP "$pfx_re - exited with status 208( |$)" stdout && return 0;;
+ esac
return 1
}