[lldb] Use os.path.sep in TestInvalidArgsLog.py to fix Windows bot
authorRaphael Isemann <teemperor@gmail.com>
Mon, 17 Aug 2020 17:03:27 +0000 (19:03 +0200)
committerRaphael Isemann <teemperor@gmail.com>
Mon, 17 Aug 2020 17:03:27 +0000 (19:03 +0200)
lldb/test/API/commands/log/invalid-args/TestInvalidArgsLog.py

index c2efcf5..dfbd4b7 100644 (file)
@@ -18,5 +18,6 @@ class InvalidArgsLogTestCase(TestBase):
 
     @no_debug_info_test
     def test_enable_empty(self):
-        self.expect("log enable lldb all -f this/is/not/a/valid/path", error=True,
-                    substrs=["Unable to open log file 'this/is/not/a/valid/path': ", "\n"])
+        invalid_path = os.path.join("this", "is", "not", "a", "valid", "path")
+        self.expect("log enable lldb all -f " + invalid_path, error=True,
+                    substrs=["Unable to open log file '" + invalid_path + "': ", "\n"])