summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-09-04 21:18:46 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-09-04 21:18:46 +0000
commitc40449f3c5809762b97289cda33091801d2247a6 (patch)
treeafec3eb8a6a2679e0bc89d2bd5db04a5951b8d53 /lldb/packages/Python/lldbsuite/test
parent5cd5d56eedf9e0069f6d80ee5e44cd5d3bb2ec7d (diff)
downloadbcm5719-llvm-c40449f3c5809762b97289cda33091801d2247a6.tar.gz
bcm5719-llvm-c40449f3c5809762b97289cda33091801d2247a6.zip
[test] Escape path to match the literal string
This test was failing when you had things like `+` in your build path. llvm-svn: 370983
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/load_unload/TestLoadUnload.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/load_unload/TestLoadUnload.py b/lldb/packages/Python/lldbsuite/test/functionalities/load_unload/TestLoadUnload.py
index 1d78e315966..02e9198e38d 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/load_unload/TestLoadUnload.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/load_unload/TestLoadUnload.py
@@ -280,7 +280,7 @@ class LoadUnloadTestCase(TestBase):
"process load %s --install=%s" % (localDylibPath, remoteDylibPath),
"%s loaded correctly" % dylibName,
patterns=[
- 'Loading "%s".*ok' % localDylibPath,
+ 'Loading "%s".*ok' % re.escape(localDylibPath),
'Image [0-9]+ loaded'])
# Search for and match the "Image ([0-9]+) loaded" pattern.
OpenPOWER on IntegriCloud