Skip to content

Commit 802e730

Browse files
authored
[lldb] Fix TestExprDiagnostics test (#136269)
Add missing source ranges to the diagnostic output.
1 parent a158352 commit 802e730

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def test_source_and_caret_printing(self):
3333
self.assertIn(
3434
"""
3535
1 | unknown_identifier
36-
| ^
36+
| ^~~~~~~~~~~~~~~~~~
3737
""",
3838
value.GetError().GetCString(),
3939
)
@@ -45,7 +45,7 @@ def test_source_and_caret_printing(self):
4545
self.assertIn(
4646
"""
4747
1 | 1 + unknown_identifier
48-
| ^
48+
| ^~~~~~~~~~~~~~~~~~
4949
""",
5050
value.GetError().GetCString(),
5151
)
@@ -57,7 +57,7 @@ def test_source_and_caret_printing(self):
5757
self.assertIn(
5858
"""
5959
2 | foobar +=1;
60-
| ^
60+
| ^~~~~~
6161
""",
6262
value.GetError().GetCString(),
6363
)

0 commit comments

Comments
 (0)