Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Re: Clean up gdb.c++ tests for dwarf 1
@ 2003-02-05 22:41 Michael Elizabeth Chastain
  0 siblings, 0 replies; 8+ messages in thread
From: Michael Elizabeth Chastain @ 2003-02-05 22:41 UTC (permalink / raw)
  To: jimb; +Cc: carlton, fnasser, gdb

Jim B posits:
> Your rationale here is that, since we don't really know which of these
> failures are genuine, can't-be-done-with-Dwarf-1 expected failures,
> and which are GDB bugs, you want to dump them all into the "genuine
> bug" category and start re-categorizing, using our modern
> interpretation of XFAIL and KFAIL?

You could interpret plan (1) that way.  Consider the scenario where
someone is still testing gdb with DWARF 1.  They are getting a mixture
of FAIL's and XFAIL's now.  After plan (1), they will get a lot more
FAIL's and a lot less XFAIL's.

There is a lot of bit rot and lies in the test suite.  If my task were
to evaluate c++ support with DWARF 1, then I would *start* by assuming
that all the XFAIL's are lying about the "X" part, and I would treat
them the same as FAIL's anyways.  So that corresponds to what you said.

Of course I am hoping that after I dump them all into the 'genuine bug'
category, that they will sit there until DWARF 1 is obsolete and
removed, and no one will ever have to 'start re-categorizing'.
But someone can do that if they need to.

Michael C


^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: Clean up gdb.c++ tests for dwarf 1
@ 2003-02-05 22:45 Michael Elizabeth Chastain
  0 siblings, 0 replies; 8+ messages in thread
From: Michael Elizabeth Chastain @ 2003-02-05 22:45 UTC (permalink / raw)
  To: gdb

I'm hearing a lot of support for option (1) so I will prepare a patch
and back it up with some test runs.  I did test DWARF 1 a year or two
ago and I'm kinda curious what it looks like now.

This will be an "everything on the Internet takes a week" patch because
someone might pop up with a DWARF 1 story that foils everything.

Michael C


^ permalink raw reply	[flat|nested] 8+ messages in thread
* Clean up gdb.c++ tests for dwarf 1
@ 2003-02-05 21:30 Michael Elizabeth Chastain
  2003-02-05 21:37 ` David Carlton
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Michael Elizabeth Chastain @ 2003-02-05 21:30 UTC (permalink / raw)
  To: carlton, fnasser; +Cc: gdb

gdb HEAD%20030205 has loads of this stuff in the C++ test suite:

  setup_xfail_format "DWARF 1"

There are 81 instances of this.

Some test scripts have them, and some don't.  I'd like to get rid
of them and replace them with something more coherent -- or nothing.

I see four choices.

(1) Just remove these calls to setup_xfail_format.  If someone runs the
    gdb test suite with DWARF 1, the test suite will do its job and give
    FAIL results for all the C++ tests that do not work with DWARF 1.

(2) Change the tests so that each C++ test script reports a single
    UNSUPPORTED for the whole script (if the debug format is DWARF 1).
    
    This requires about five lines of code per script.  This cannot be
    centralized in 'skip_cplus_tests', because the check for the debug
    format has to happen after the test script has compiled the test
    program, started gdb, and proceeded to main, so that 'info source'
    works.

(3) Leave the mess alone.

(4) Start fixing the DWARF 1 support.  I'll start testing DWARF 1 and
    filing bug reports for the things that don't work.

My preference order is (1) - (2) - (3) - (4).

What do you think?

Michael C


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-02-05 22:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-05 22:41 Clean up gdb.c++ tests for dwarf 1 Michael Elizabeth Chastain
  -- strict thread matches above, loose matches on Subject: below --
2003-02-05 22:45 Michael Elizabeth Chastain
2003-02-05 21:30 Michael Elizabeth Chastain
2003-02-05 21:37 ` David Carlton
2003-02-05 21:38 ` Jim Blandy
2003-02-05 21:43   ` Daniel Jacobowitz
2003-02-05 22:06   ` David Carlton
2003-02-05 22:18 ` Elena Zannoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox