This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
[PATCH]: annota1.exp testsuite tweak
- To: ezannoni at cygnus dot com, gdb-patches at sourceware dot cygnus dot com
- Subject: [PATCH]: annota1.exp testsuite tweak
- From: msnyder at cygnus dot com
- Date: Thu, 18 May 2000 17:19:20 -0700 (PDT)
- Cc: shebs at apple dot com
This is a minor adjustment to a regular expression; having fewer
wildcards gets it to pass on Solaris 8 where it was failing before.
It's actually more explicit than before.
2000-05-18 Michael Snyder <msnyder@seadog.cygnus.com>
* gdb.base/annota1.exp (annotate-signal-handler-caller):
Relax the regular expression a little, make it pass on Solaris 8.
Index: annota1.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/annota1.exp,v
retrieving revision 1.1.1.7
diff -c -r1.1.1.7 annota1.exp
*** annota1.exp 1999/11/09 01:23:14 1.1.1.7
--- annota1.exp 2000/05/19 00:15:29
***************
*** 277,286 ****
verbose "match_max now is: [match_max]"
send_gdb "backtrace\n"
gdb_expect {
! -re "frame-begin 0 $hex.*0.*frame-end.*frame-begin 1 $hex.*1.*(\032\032signal-handler-caller\r\n.signal handler called.\r\n\r\n)*\032\032frame-end\r\n\r\n\032\032frame-begin 2 $hex.*2.*(frame-begin 3 $hex.*3.*)*frame-end.*$gdb_prompt$" \
! { pass "backtrace @ signal handler" }
! -re ".*$gdb_prompt$" { fail "backtrace @ signal handler" }
! timeout { fail "backtrace @ signal handler (timeout)" }
}
#
--- 277,287 ----
verbose "match_max now is: [match_max]"
send_gdb "backtrace\n"
gdb_expect {
! -re "frame-begin 0 $hex\r\n#0.*frame-end.*frame-begin 1 $hex\r\n#1.*(\032\032signal-handler-caller\r\n.signal handler called.\r\n\r\n)*\032\032frame-end\r\n\r\n\032\032frame-begin 2 $hex\r\n#2.*(frame-begin 3 $hex\r\n#3.*)*frame-end.*$gdb_prompt$" {
! pass "backtrace @ signal handler"
! }
! -re ".*$gdb_prompt$" { fail "backtrace @ signal handler" }
! timeout { fail "backtrace @ signal handler (timeout)" }
}
#