This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] gdb.trace/*.exp send_gdb vs. gdb_test
- From: Pedro Alves <pedro at codesourcery dot com>
- To: Michael Snyder <msnyder at vmware dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>, Stan Shebs <stan at codesourcery dot com>
- Date: Wed, 2 Jun 2010 22:58:01 +0100
- Subject: Re: [RFA] gdb.trace/*.exp send_gdb vs. gdb_test
- References: <4BFEB77D.4080107@vmware.com> <201005272350.40581.pedro@codesourcery.com> <4C06B438.1090508@vmware.com>
On Wednesday 02 June 2010 20:42:48, Michael Snyder wrote:
> > I took a look at your patch.
> >
> >> -send_gdb "list $baseline, +12\n"
> >> -gdb_expect {
> >> +gdb_test_multiple "list $baseline, +12" "all tests in this module will fail" {
> >> -re "\[\r\n\](\[0-9\]+).*gdbtestline 1 " {
> >> set testline1 $expect_out(1,string)
> >> exp_continue
> >> @@ -108,7 +107,7 @@ all tests in this module will fail."
> >> untested backtrace.exp
> >> return -1
> >> all tests in this module will fail."
> >> - }
> >> + }
> >> }
> >>
> >
> > Can you do the return outside of gdb_test_multiple please?
> > I saw a few other instances in tfind.exp. Otherwise, looked fine.
>
> Done and committed. By the way, would you take a look at the
> diff just above? What is "all tests in this module will fail"
> doing there? The same thing appears in both backtrace.exp and
> report.exp.
>
Huh! It looks like it got left behind when somebody removed
gdb_supported_entire_file calls from these tests. I see things
like these in gdb 6.0:
gdb_expect {
-re "MIS-MATCHED.*$gdb_prompt $" {
gdb_suppress_entire_file "Symbol file does not match target!
all tests in this module will fail.";
}
--
Pedro Alves