[lldb] Remove OS-specific string from TestInvalidArgsLog
authorRaphael Isemann <teemperor@gmail.com>
Mon, 17 Aug 2020 09:53:03 +0000 (11:53 +0200)
committerRaphael Isemann <teemperor@gmail.com>
Mon, 17 Aug 2020 09:57:43 +0000 (11:57 +0200)
This is the error message from the OS, so we shouldn't check against the
OS-specific part of the string.

Fixes the test on Windows which returns a different error message.

lldb/test/API/commands/log/invalid-args/TestInvalidArgsLog.py

index 9a1fc69..c2efcf5 100644 (file)
@@ -19,4 +19,4 @@ 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': No such file or directory\n"])
+                    substrs=["Unable to open log file 'this/is/not/a/valid/path': ", "\n"])