From: Stefano Lattarini Date: Thu, 16 Feb 2012 11:30:23 +0000 (+0100) Subject: tests: avoid spurious failure on older Cygwin X-Git-Tag: ng-0.5a~9^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bcab4a0be1fa930be89f1e4b31eb3f98d17f7d0;p=thirdparty%2Fautomake.git tests: avoid spurious failure on older Cygwin * tests/tap-signal.tap: Sending a SIGQUIT on Cygwin 1.5 can cause a segmentation fault instead (sometimes at least). Don't let this older bug pollute the results of our testsuite. --- diff --git a/tests/tap-signal.tap b/tests/tap-signal.tap index fb4e9ba46..58f8d0cc8 100755 --- a/tests/tap-signal.tap +++ b/tests/tap-signal.tap @@ -71,6 +71,8 @@ $AUTOMAKE ./configure +system=`uname -s -r || echo unknown` # Needed later. + signal_caught () { numeric=$1 @@ -83,7 +85,13 @@ signal_caught () 15) symbolic=TERM;; *) fatal_ "unexpected signal number '$numeric'" esac - sig_re="((SIG)?$symbolic|$numeric)" + # Sending a SIGQUIT on Cygwin 1.5 can cause a segmentation fault + # instead (sometimes). Don't let this older bug pollute the results + # of our testsuite. + case $numeric,$system in + 3,CYGWIN*\ 1.5.*) sig_re="((SIG)?($symbolic|SEGV)|$numeric|11)";; + *) sig_re="((SIG)?$symbolic|$numeric)";; + esac wbound_re="($|[^a-zA-Z0-9_-])" pfx_re="^ERROR: signal-$numeric\\.test" case $am_tap_implementation in