Skip to content

[lldb][test][x86_64][win] Split assertion in TestBreakpointConditions #100487

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

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,15 @@ def breakpoint_conditions_python(self):
thread.IsValid(),
"There should be a thread stopped due to breakpoint condition",
)

frame0 = thread.GetFrameAtIndex(0)
var = frame0.FindValue("val", lldb.eValueTypeVariableArgument)
self.assertTrue(
frame0.GetLineEntry().GetLine() == self.line1 and var.GetValue() == "3"
self.assertEqual(
frame0.GetLineEntry().GetLine(),
self.line1,
"The debugger stopped on the correct line",
)
self.assertEqual(var.GetValue(), "3")

# The hit count for the breakpoint should be 1.
self.assertEqual(breakpoint.GetHitCount(), 1)
Expand Down
Loading