2 Check that SBValue.GetValueAsSigned() does the right thing for a 32-bit -1.
6 from lldbsuite
.test
.lldbtest
import *
7 import lldbsuite
.test
.lldbutil
as lldbutil
10 class TestCase(TestBase
):
11 NO_DEBUG_INFO_TESTCASE
= True
13 def test_with_run_command(self
):
15 lldbutil
.run_to_source_breakpoint(
16 self
, "// break here", lldb
.SBFileSpec("main.cpp")
19 self
.assertEqual(self
.frame().FindVariable("myvar").GetValueAsSigned(), -1)
21 self
.frame().FindVariable("myvar").GetValueAsUnsigned(), 0xFFFFFFFF