[RFA] testsuite/gdb.c++/ref-types.exp: use runto

Michael Snyder msnyder@cygnus.com
Fri Mar 16 14:29:00 GMT 2001


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";
    }
  }



More information about the Gdb-patches mailing list