From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Snyder To: Daniel Berlin Cc: Michael Elizabeth Chastain , fnasser@redhat.com, gdb-patches@sources.redhat.com Subject: Re: [RFA] testsuite/gdb.c++/ref-types.exp: use runto Date: Fri, 16 Mar 2001 14:29:00 -0000 Message-id: <3AB29121.7F3BC7BB@cygnus.com> References: <200103161807.KAA06081@bosch.cygnus.com> X-SW-Source: 2001-03/msg00295.html Daniel Berlin wrote: > > Michael Elizabeth Chastain 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"; } }