Simplify test script
authorAdrian Prantl <aprantl@apple.com>
Tue, 4 Apr 2023 22:08:38 +0000 (15:08 -0700)
committerAdrian Prantl <aprantl@apple.com>
Tue, 4 Apr 2023 22:08:57 +0000 (15:08 -0700)
lldb/test/API/lang/c/full_lto_stepping/TestFullLtoStepping.py

index 9a553e8..afd0365 100644 (file)
@@ -13,14 +13,8 @@ class TestFullLtoStepping(TestBase):
     @skipUnlessDarwin
     def test(self):
         self.build()
-        target = self.createTestTarget()
-    
-        breakpoint = target.BreakpointCreateByName("main")
-        self.assertTrue(
-            breakpoint and breakpoint.IsValid(),
-            "Breakpoint is valid")
+        _, _, thread, _ = lldbutil.run_to_name_breakpoint(self, 'main')
 
-        _, _, thread, _ = lldbutil.run_to_breakpoint_do_run(self, target, breakpoint)
         name = thread.frames[0].GetFunctionName()
         # Check that we start out in main.
         self.assertEqual(name, 'main')