Skip to content

Commit

Permalink
Revert "[lldb] Make TestExprDiagnostics.py pass again after enabling …
Browse files Browse the repository at this point in the history
…Fix-Its in test"

This reverts commit 502a06f as it
breaks the macOS bots. Raph will take a look and re-commit.
  • Loading branch information
Davide Italiano committed Mar 30, 2020
1 parent 10f633d commit 55ed09d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ def test_source_and_caret_printing(self):
self.assertIn("<user expression 3>:1:10", value.GetError().GetCString())

# Multiline top-level expressions.
value = frame.EvaluateExpression("void x() {}\nvoid foo;", top_level_opts)
value = frame.EvaluateExpression("void x() {}\nvoid foo(unknown_type x) {}", top_level_opts)
self.assertFalse(value.GetError().Success())
self.assertIn("\nvoid foo;\n ^", value.GetError().GetCString())
self.assertIn("<user expression 4>:2:6", value.GetError().GetCString())
self.assertIn("\nvoid foo(unknown_type x) {}\n ^\n", value.GetError().GetCString())
self.assertIn("<user expression 4>:2:10", value.GetError().GetCString())

# Test that we render Clang's 'notes' correctly.
value = frame.EvaluateExpression("struct SFoo{}; struct SFoo { int x; };", top_level_opts)
Expand Down

0 comments on commit 55ed09d

Please sign in to comment.