[v3 testsuite] gdb-test.exp: catch error running gdb command
Janis Johnson
janis_johnson@mentor.com
Thu Jan 3 23:57:00 GMT 2013
The libstdc++ prettyprinter tests require a certain level of support
from GDB, and the check for that GDB support runs a command that
includes a quoted string. This causes an error from the testsuite
infrastructure for embedded processors whose board support passes
commands through additional levels of procedures that lose the
backslashes that escape the quotes. Adding more backslashes wouldn't
work because it would prevent the command from working for the majority
of boards. I can't figure out a real solution to the problem.
Rather than gdb_version_check resulting in an error for boards that
pass a command through additional levels of procedure calls, this
patch lets it catch the error so that it can fail gracefully and the
tests will be reported as UNSUPPORTED. This will skip the tests for
a relatively small number of test setups.
OK for trunk?
Janis
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gcc-20130103-1
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20130103/11ba80e8/attachment.ksh>
More information about the Libstdc++
mailing list