blob: a4de77d69c9337c5d2ba74850df2a23f67619ea4 [file] [log] [blame]
'''Module that contains the test DWARF language attribute test for JNI.'''
from harness.test_base_remote import TestBaseRemote
class TestDWARFLangJNI(TestBaseRemote):
'''Tests the DWARF language attribute is present in RS kernels in a JNI.'''
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 'JNIDebugWaitAttach'
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', [])
self.try_command('b simple_kernel', [])
self.try_command('process continue', [])
self.assert_lang_renderscript()