Re: [PATCH v2] PR 18303, Tolerate malformed input for lookup_symbol-called functions.

Pedro Alves
2016-01-28T12:06:38Z

On 01/28/2016 01:21 AM, Don Breazeal wrote:
> The patch includes three new tests related to this. One is just
> gdb.linespec/ls-errs.exp copied and converted to use C++ instead of C, and
> to add a case using a file name containing a Windows-style logical drive
> specifier.
....
> gdb/testsuite/gdb.linespec/ls-errs-cp.cc | 36 +++++
> gdb/testsuite/gdb.linespec/ls-errs-cp.exp | 240 ++++++++++++++++++++++++++++
...

Can't we somehow reuse the existing test? Say, either:

- move the main body of ls-errs.exp a procedure, and call it twice,
once for each language, or,

- make gdb.linespec/ls-errs-cp.exp set some $language var and then
source gdb.linespec/ls-errs.exp, like gdb.base/checkpoint-ns.exp.

Thanks,
Pedro Alves