blob: 175dc4494eecbdf2a0aa3727ee7dd5949f067d02 [file] [log] [blame]
'''Module that contains the test TestBreakpointFileLine.'''
from harness.test_base_remote import TestBaseRemote
class TestBreakpointFileLine(TestBaseRemote):
'''Tests the setting of a breakpoint on a specific line of a RS file.'''
def get_bundle_target(self):
'''Return string with name of bundle executable to run.
Returns:
A string containing the name of the binary that this test can be run
with.
'''
return 'JavaDebugWaitAttach'
def test_case(self, _):
'''Run the lldb commands that are being tested.
Raises:
TestFail: One of the lldb commands did not provide the expected
output.
'''
self.try_command('language renderscript status',
['Runtime Library discovered',
'Runtime Driver discovered'])
self.try_command('breakpoint set --file simple.rs --line 12',
['(pending)'])
self.try_command('process continue',
[])
self.try_command('bt',
['librs.simple.so',
'simple_kernel',
'stop reason = breakpoint'])
self.try_command('breakpoint list',
['simple.rs',
'resolved = 1'])
self.try_command('process status',
['stopped',
'stop reason = breakpoint'])
self.try_command(
'language renderscript kernel breakpoint set simple_kernel',
['where = librs.simple.so`simple_kernel',
'Breakpoint(s) created'])
self.try_command('breakpoint list',
[])