Skip to content

Commit c40449f

Browse files
committed
[test] Escape path to match the literal string
This test was failing when you had things like `+` in your build path. llvm-svn: 370983
1 parent 5cd5d56 commit c40449f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/packages/Python/lldbsuite/test/functionalities/load_unload/TestLoadUnload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def run_lldb_process_load_and_unload_commands(self):
280280
"process load %s --install=%s" % (localDylibPath, remoteDylibPath),
281281
"%s loaded correctly" % dylibName,
282282
patterns=[
283-
'Loading "%s".*ok' % localDylibPath,
283+
'Loading "%s".*ok' % re.escape(localDylibPath),
284284
'Image [0-9]+ loaded'])
285285

286286
# Search for and match the "Image ([0-9]+) loaded" pattern.

0 commit comments

Comments
 (0)