17 lines · python
1import lldb2from lldbsuite.test.decorators import *3from lldbsuite.test.lldbtest import *4from lldbsuite.test import lldbutil5 6 7class ObjCiVarIMPTestCase(TestBase):8 @skipUnlessDarwin9 @no_debug_info_test10 def test_imp_ivar_type(self):11 self.build()12 target, process, thread, bkpt = lldbutil.run_to_name_breakpoint(self, "main")13 frame = thread.GetFrameAtIndex(0)14 lang_info = frame.GetLanguageSpecificData()15 version = lang_info.GetValueForKey("Objective-C runtime version")16 self.assertEqual(version.GetIntegerValue(), 2)17