From c40449f3c5809762b97289cda33091801d2247a6 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Wed, 4 Sep 2019 21:18:46 +0000 Subject: [PATCH] [test] Escape path to match the literal string This test was failing when you had things like `+` in your build path. llvm-svn: 370983 --- .../Python/lldbsuite/test/functionalities/load_unload/TestLoadUnload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 1d78e31..02e9198 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. -- 2.7.4