]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: avoid spurious failure on older Cygwin
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 16 Feb 2012 11:30:23 +0000 (12:30 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 16 Feb 2012 11:30:23 +0000 (12:30 +0100)
* 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.

tests/tap-signal.tap

index fb4e9ba46f677a698d1a1c9095becefc0bdce647..58f8d0cc80ed222811aae56b41931494138c26c3 100755 (executable)
@@ -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