[PATCH]: xfail a test that never works with g++

msnyder@cygnus.com msnyder@cygnus.com
Fri Jun 2 15:35:00 GMT 2000


This test was added by HP last year for use with their native compiler.
A comment explains that the test never worked with gnu/gcc/g++, and the
authors attempted to xfail the whole test.  What they apparently didn't
realize was that "xfail" only applies to the next pass/fail, not to the
entire test file.

2000-06-02  Michael Snyder  <msnyder@seadog.cygnus.com>

        * gdb.c++/local.exp: This test has never been known to work with g++.

Index: gdb.c++/local.exp
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/testsuite/gdb.c++/local.exp,v
retrieving revision 1.6
diff -p -r1.6 local.exp
*** local.exp	1999/11/24 16:08:47	1.6
--- local.exp	2000/06/02 22:32:48
*************** gdb_expect {
*** 130,135 ****
--- 130,144 ----
      timeout             { fail "(timeout) ptype NestedInnerLocal" }
  }     
  
+ # srikanth, These tests have always been run only with aCC. Now in
+ # the new scheme of things, we run it twice, once with aCC, and once
+ # with g++. Flag these tests as expected failures when run with g++.
+ # as these are failing now and were never known to pass with g++.
+ global gcc_compiled
+ if {$gcc_compiled} then  {
+ setup_xfail "*-*-*"
+ }
+ 
  # gdb incorrectly interprets the NestedInnerLocal in
  # InnerLocal::NestedInnerLocal as field name instead of a type name;
  # See CLLbs14784.


More information about the Gdb-patches mailing list