automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[FYI] {master} tests: avoid spurious failure on older Cygwin


From: Stefano Lattarini
Subject: [FYI] {master} tests: avoid spurious failure on older Cygwin
Date: Thu, 16 Feb 2012 13:27:43 +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 |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/tests/tap-signal.tap b/tests/tap-signal.tap
index fb4e9ba..58f8d0c 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
-- 
1.7.9




reply via email to

[Prev in Thread] Current Thread [Next in Thread]