From 6b97fa0bfefea7d9028b899a92bc29ab9b133906 Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Mon, 17 Aug 2020 11:53:03 +0200 Subject: [PATCH] [lldb] Remove OS-specific string from TestInvalidArgsLog 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/test/API/commands/log/invalid-args/TestInvalidArgsLog.py b/lldb/test/API/commands/log/invalid-args/TestInvalidArgsLog.py index 9a1fc69..c2efcf5 100644 --- a/lldb/test/API/commands/log/invalid-args/TestInvalidArgsLog.py +++ b/lldb/test/API/commands/log/invalid-args/TestInvalidArgsLog.py @@ -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"]) -- 2.7.4