This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 3/3] Linespec rewrite: New tests
- From: Tom Tromey <tromey at redhat dot com>
- To: Keith Seitz <keiths at redhat dot com>
- Cc: "gdb-patches\ at sourceware dot org ml" <gdb-patches at sourceware dot org>
- Date: Mon, 26 Mar 2012 10:33:13 -0600
- Subject: Re: [RFA 3/3] Linespec rewrite: New tests
- References: <4F67A3B3.6030500@redhat.com>
>>>>> "Keith" == Keith Seitz <keiths@redhat.com> writes:
Keith> This final patch, also dealing with testing, introduces several new
Keith> tests. While one or two of these add tests for new features, several
Keith> just add missing tests, like "break ::foo" (surprisingly /not/ tested
Keith> today).
This looks pretty good.
If these tests all pass against CVS gdb, I think this could go in
independently of the rewrite patch.
Keith> +set base "ls-dollar"
Keith> +set srcfile "$base.cc"
Keith> +set testfile "$base.exp"
Keith> +set exefile $base
Keith> +
Keith> +if {[skip_cplus_tests]} {
Keith> + unsupported linespec.exp
Wrong text in the argument here.
I think the new trend, proposed in the not-too-distant past by Pedro
(IIRC), is to put some useful text in there instead of just the .exp
name, since that is redundant anyhow.
Keith> +set base ls-errs
Keith> +set srcfile "$base.c"
Keith> +set testfile "$base.exp"
Keith> +set exefile $base
Keith> +
Keith> +if {[skip_cplus_tests]} {
Keith> + unsupported linespec.exp
Wrong text -- but there doesn't seem to be a need to examine
skip_cplus_tests here at all.
Tom