blob: 7e944a3ce4719ec9f352343f29bc7195a627585b [file] [log] [blame]
'''Module that contains the test TestBreakpointKernel2.'''
from __future__ import absolute_import
from harness.test_base_remote import TestBaseRemote
class TestBreakpointKernel2(TestBaseRemote):
'''Tests the setting of a breakpoint on a RS kernel.'''
bundle_target = {
'java': 'JavaInfiniteLoop',
'jni': 'JNIInfiniteLoop',
'cpp': 'CppInfiniteLoop'
}
def test_breakpoint_resolution_simple_kernel(self):
# pylint: disable=line-too-long
self.try_command('language renderscript kernel breakpoint set simple_kernel',
['Breakpoint(s) created'])
self.try_command('process continue',
['resuming',
'stopped',
'stop reason = breakpoint'])
self.try_command('bt',
['stop reason = breakpoint',
'frame #0:',
'librs.infiniteloop.so',
'simple_kernel'],
[r'infiniteloop\.rs:2[78]'])
self.try_command('breakpoint list',
['simple_kernel',
'resolved = 1'])
self.try_command('process status',
['stopped',
'.so`simple_kernel',
'stop reason = breakpoint'])