This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] testsuite/gdb.c++/ref-types.exp: use runto
Daniel Berlin wrote:
>
> Michael Elizabeth Chastain <chastain@cygnus.com> writes:
>
> > Fernando Nasser writes:
> > > But I wonder if we should not call gdb_start_again() the first time
> > > around instead of having the code duplicated. It is exactly the same
> > > thing.
> >
> > Doh! I'm so busy with individual lines, I missed an opportunity to
> > take out a whole section.
> >
> > ref_types.exp works now, so I am going to leave it alone and fix more
> > pressing problems first: like gdb.c++/userdef.exp, which has no code,
> > and gdb.c++/virtfunc.exp, which XFAILs some tests because gdb
> > doesn't [do the right thing]
> ^^^^^^^
> can't
> Not doesn't.
> Can't.
>
> They need to be xfail'd for old-abi, but not for new-abi.
In that case, (and without having looked at the test),
I wonder if it would be possible to do something like the following?
send_gdb "whatever\n
"
gdb_expect {
-re "new_abi_pattern" {
pass "this test";
}
-re "old_abi_pattern" {
setup_xfail "this test";
fail "this test"
}
default {
fail "this test";
}
}