From: Michael Snyder Date: Mon, 12 Jun 2000 20:34:00 +0000 (+0000) Subject: 2000-06-02 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7346e70f2e62260094f82122221b6fbf5a60fe1e;p=binutils-gdb.git 2000-06-02 Michael Snyder * gdb.base/annota1.exp (run until main breakpoint): Loosen up the regular expression: accept an (almost) arbitrary sequence of "frames-invalid" and "breakpoints-invalid" messages both before and after the "starting" message. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 471a9de3d8e..b46d81d9329 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -15,6 +15,13 @@ Wed Jun 7 13:02:40 2000 Andrew Cagney * gdb.c++/misc.cc: Fix ambiguous initialization with correct initialization. +2000-06-02 Michael Snyder + + * gdb.base/annota1.exp (run until main breakpoint): Loosen up + the regular expression: accept an (almost) arbitrary sequence of + "frames-invalid" and "breakpoints-invalid" messages both before + and after the "starting" message. + 2000-06-02 Michael Snyder * gdb.c++/local.exp: This test has never been known to work with g++. diff --git a/gdb/testsuite/gdb.base/annota1.exp b/gdb/testsuite/gdb.base/annota1.exp index d38858d0044..6c1ededf2a4 100644 --- a/gdb/testsuite/gdb.base/annota1.exp +++ b/gdb/testsuite/gdb.base/annota1.exp @@ -142,11 +142,16 @@ gdb_expect { # #exp_internal 1 send_gdb "run\n" - gdb_expect { - -re "\r\n\032\032post-prompt\r\nStarting program: $binfile \(\r\n\r\n\032\032frames-invalid\)+\(\r\n\r\n\032\032breakpoints-invalid\)*.*\(\r\n\r\n\032\032frames-invalid\)*\r\n\r\n\032\032starting\(\r\n\r\n\032\032frames-invalid\)+\r\n\r\n\032\032breakpoint 1\r\n\r\nBreakpoint 1, \r\n\032\032frame-begin 0 $hex\r\n\r\n\032\032frame-function-name\r\nmain\r\n\032\032frame-args\r\n \\(\\)\r\n\032\032frame-source-begin\r\n at \r\n\032\032frame-source-file\r\n.*annota1.c\r\n\032\032frame-source-file-end\r\n:\r\n\032\032frame-source-line\r\n$main_line\r\n\032\032frame-source-end\r\n\r\n\r\n\032\032source.*$srcfile:$main_line:.*:beg:$hex\r\n\r\n\032\032frame-end\r\n\r\n\032\032stopped\r\n.*$gdb_prompt$" \ - { pass "run until main breakpoint" } - -re ".*$gdb_prompt$" { fail "run until main breakpoint" } - timeout { fail "run until main breakpoint (timeout)" } +gdb_expect { + -re "\r\n\032\032post-prompt\r\nStarting program: $binfile \(\r\n\r\n\032\032frames-invalid\)+\(\(\r\n\r\n\032\032frames-invalid\)|\(\r\n\r\n\032\032breakpoints-invalid\)\)*\r\n\r\n\032\032starting\(\r\n\r\n\032\032frames-invalid\)+\(\(\r\n\r\n\032\032frames-invalid\)|\(\r\n\r\n\032\032breakpoints-invalid\)\)*\r\n\r\n\032\032breakpoint 1\r\n\r\nBreakpoint 1, \r\n\032\032frame-begin 0 $hex\r\n\r\n\032\032frame-function-name\r\nmain\r\n\032\032frame-args\r\n \\(\\)\r\n\032\032frame-source-begin\r\n at \r\n\032\032frame-source-file\r\n.*annota1.c\r\n\032\032frame-source-file-end\r\n:\r\n\032\032frame-source-line\r\n$main_line\r\n\032\032frame-source-end\r\n\r\n\r\n\032\032source.*$srcfile:$main_line:.*:beg:$hex\r\n\r\n\032\032frame-end\r\n\r\n\032\032stopped.*$gdb_prompt$" { + pass "run until main breakpoint" + } + -re ".*$gdb_prompt$" { + fail "run until main breakpoint" + } + timeout { + fail "run until main breakpoint (timeout)" + } } #exp_internal 0 #exit 0