-
Notifications
You must be signed in to change notification settings - Fork 15k
[lldb][test] Fix language note tests on Windows #162995
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[lldb][test] Fix language note tests on Windows #162995
Conversation
The LLDB test-suite compiles the tests on Windows with 'C++14' by default: https://github.com/llvm/llvm-project/blob/3bfb5b0e7ccbcb9f127f5b9c958e6499ba9c0523/lldb/packages/Python/lldbsuite/test/make/Makefile.rules#L357-L360 This fixes Windows buildbot failures.
|
Don't have a Windows machine to test this on, so relying on CI to tell me. |
|
@llvm/pr-subscribers-lldb Author: Michael Buch (Michael137) ChangesThe LLDB test-suite compiles the tests on Windows with 'C++14' by default: llvm-project/lldb/packages/Python/lldbsuite/test/make/Makefile.rules Lines 357 to 360 in 3bfb5b0
This fixes Windows buildbot failures. Full diff: https://github.com/llvm/llvm-project/pull/162995.diff 2 Files Affected:
diff --git a/lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.py b/lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.py
index ec208f2c32503..bd468f272d15d 100644
--- a/lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.py
+++ b/lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.py
@@ -218,11 +218,11 @@ def check_error(diags):
# Detail 1/3: note: requested expression language
diag = details.GetItemAtIndex(0)
self.assertEqual(str(diag.GetValueForKey("severity")), "note")
- self.assertEqual(
- str(diag.GetValueForKey("message")), "Ran expression as 'C++11'."
+ self.assertIn(
+ "Ran expression as 'C++", str(diag.GetValueForKey("message"))
)
- self.assertEqual(
- str(diag.GetValueForKey("rendered")), "Ran expression as 'C++11'."
+ self.assertIn(
+ "Ran expression as 'C++", str(diag.GetValueForKey("rendered"))
)
self.assertEqual(str(diag.GetValueForKey("source_location")), "")
self.assertEqual(str(diag.GetValueForKey("file")), "")
diff --git a/lldb/test/Shell/Expr/TestExprLanguageNote.test b/lldb/test/Shell/Expr/TestExprLanguageNote.test
index f3dc5928fcca9..b4387bf9121ae 100644
--- a/lldb/test/Shell/Expr/TestExprLanguageNote.test
+++ b/lldb/test/Shell/Expr/TestExprLanguageNote.test
@@ -26,7 +26,7 @@ run
expr blah
# CHECK-TARGET: (lldb) expr
-# CHECK-TARGET: note: Ran expression as 'C++14'.
+# CHECK-TARGET: note: Ran expression as 'C++{{.*}}'
expr -l objc -- blah
|
|
✅ With the latest revision this PR passed the Python code formatter. |
The LLDB test-suite compiles the tests on Windows with 'C++14' by default: https://github.com/llvm/llvm-project/blob/3bfb5b0e7ccbcb9f127f5b9c958e6499ba9c0523/lldb/packages/Python/lldbsuite/test/make/Makefile.rules#L357-L360 This fixes Windows buildbot failures.
The LLDB test-suite compiles the tests on Windows with 'C++14' by default: https://github.com/llvm/llvm-project/blob/3bfb5b0e7ccbcb9f127f5b9c958e6499ba9c0523/lldb/packages/Python/lldbsuite/test/make/Makefile.rules#L357-L360 This fixes Windows buildbot failures.
The LLDB test-suite compiles the tests on Windows with 'C++14' by default:
llvm-project/lldb/packages/Python/lldbsuite/test/make/Makefile.rules
Lines 357 to 360 in 3bfb5b0
This fixes Windows buildbot failures.