2 Verify the default cache line size for android targets
7 from lldbsuite
.test
.decorators
import *
8 from lldbsuite
.test
.lldbtest
import *
9 from lldbsuite
.test
import lldbutil
12 class DefaultCacheLineSizeTestCase(TestBase
):
13 NO_DEBUG_INFO_TESTCASE
= True
15 @skipUnlessTargetAndroid
16 def test_cache_line_size(self
):
18 target
= self
.createTestTarget()
19 self
.assertTrue(target
and target
.IsValid(), "Target is valid")
21 breakpoint
= target
.BreakpointCreateByName("main")
22 self
.assertTrue(breakpoint
and breakpoint
.IsValid(), "Breakpoint is valid")
25 process
= target
.LaunchSimple(None, None, self
.get_process_working_directory())
26 self
.assertTrue(process
and process
.IsValid(), PROCESS_IS_VALID
)
27 self
.assertEqual(process
.GetState(), lldb
.eStateStopped
, PROCESS_STOPPED
)
29 # check the setting value
31 "settings show target.process.memory-cache-line-size", patterns
=[" = 2048"]
36 self
.assertState(process
.GetState(), lldb
.eStateExited
, PROCESS_EXITED
)