[Lldb-commits] [lldb] r370983 - [test] Escape path to match the literal string
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 4 14:18:46 PDT 2019
Author: jdevlieghere
Date: Wed Sep 4 14:18:46 2019
New Revision: 370983
URL: http://llvm.org/viewvc/llvm-project?rev=370983&view=rev
Log:
[test] Escape path to match the literal string
This test was failing when you had things like `+` in your build path.
Modified:
lldb/trunk/packages/Python/lldbsuite/test/functionalities/load_unload/TestLoadUnload.py
Modified: lldb/trunk/packages/Python/lldbsuite/test/functionalities/load_unload/TestLoadUnload.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/load_unload/TestLoadUnload.py?rev=370983&r1=370982&r2=370983&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/load_unload/TestLoadUnload.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/load_unload/TestLoadUnload.py Wed Sep 4 14:18:46 2019
@@ -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.
More information about the lldb-commits
mailing list