This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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



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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]