[Lldb-commits] [lldb] 5d77344 - Simplify test script
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 4 15:09:06 PDT 2023
Author: Adrian Prantl
Date: 2023-04-04T15:08:57-07:00
New Revision: 5d77344d9d52a623de93563d9fae47cb0634d699
URL: https://github.com/llvm/llvm-project/commit/5d77344d9d52a623de93563d9fae47cb0634d699
DIFF: https://github.com/llvm/llvm-project/commit/5d77344d9d52a623de93563d9fae47cb0634d699.diff
LOG: Simplify test script
Added:
Modified:
lldb/test/API/lang/c/full_lto_stepping/TestFullLtoStepping.py
Removed:
################################################################################
diff --git a/lldb/test/API/lang/c/full_lto_stepping/TestFullLtoStepping.py b/lldb/test/API/lang/c/full_lto_stepping/TestFullLtoStepping.py
index 9a553e8afff6e..afd036524bfe5 100644
--- a/lldb/test/API/lang/c/full_lto_stepping/TestFullLtoStepping.py
+++ b/lldb/test/API/lang/c/full_lto_stepping/TestFullLtoStepping.py
@@ -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')
More information about the lldb-commits
mailing list