This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Clean up gdb.c++ tests for dwarf 1
- From: Elena Zannoni <ezannoni at redhat dot com>
- To: Michael Elizabeth Chastain <mec at shout dot net>
- Cc: carlton at math dot stanford dot edu, fnasser at redhat dot com, gdb at sources dot redhat dot com
- Date: Wed, 5 Feb 2003 17:22:34 -0500
- Subject: Re: Clean up gdb.c++ tests for dwarf 1
- References: <200302052130.h15LUHB10715@duracef.shout.net>
Michael Elizabeth Chastain writes:
> 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
My preferences are (1) (1) (1) (1) (1) (1).....
elena