29 lines · python
1import lldb2from lldbsuite.test.decorators import *3from lldbsuite.test.lldbtest import *4 5 6class TestFunctionNameWithoutArgs(TestBase):7 @skipUnlessDarwin8 @no_debug_info_test9 def test_function_name_without_args(self):10 self.build()11 target = self.createTestTarget()12 target.LaunchSimple(None, None, self.get_process_working_directory())13 14 self.runCmd("run", RUN_SUCCEEDED)15 self.expect(16 "bt",17 substrs=[18 "stop reason = hit program assert",19 "libsystem_kernel.dylib`__pthread_kill",20 ],21 )22 self.runCmd(23 'settings set frame-format "frame #${frame.index}: ${function.name-without-args}\n"'24 )25 self.expect(26 "bt",27 substrs=["stop reason = hit program assert", "frame #0: __pthread_kill"],28 )29