GDB testsuite: Escape paths used in regular expressions
authorDon Breazeal <donb@codesourcery.com>
Fri, 15 Jul 2016 18:19:19 +0000 (11:19 -0700)
committerDon Breazeal <donb@codesourcery.com>
Fri, 15 Jul 2016 18:19:19 +0000 (11:19 -0700)
commit37539ebee2ea9fc0daceaae1074a79de88d563fb
tree4e57deaea2cd3707113d3d386d3ed55d97daeaec
parent76359541825cf36ecd14ab6b5974ee56e1c59eff
GDB testsuite: Escape paths used in regular expressions

This patch fixes problems with a few GDB testsuites when executing in a
path that contains special characters (e.g. "++").  When such paths are
used as a regular expression, the regular expression parser will choke
and cause the tests to fail.  This patch uses string_to_regexp to
escape strings that will be used as regular expressions, in order to
sanitize path names used in expect scripts.

2016-07-15  Zachary Welch  <zwelch@codesourcery.com>
    Don Breazeal <donb@codesourcery.com>

gdb/testsuite/ChangeLog:
* gdb.base/maint.exp: Escape paths used in regular expressions.
* gdb.stabs/weird.exp: Likewise.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/maint.exp
gdb/testsuite/gdb.stabs/weird.exp
This page took 0.033413 seconds and 4 git commands to generate.