https://github.com/Teemperor created 
https://github.com/llvm/llvm-project/pull/220621

Currently these tests fail much later with the following error when the process 
fails to launch:

```
AssertionError: False is not true : inline test did not hit a single breakpoint
```

>From 1dc7ba33e3d615b6157a0f77ba8e858859f78e83 Mon Sep 17 00:00:00 2001
From: Raphael Isemann <[email protected]>
Date: Wed, 2 Sep 2026 16:26:56 +0100
Subject: [PATCH] [lldb] Improve error message when inline tests fail to launch

Currently these tests fail much later with the following error when
the process fails to launch:

```
AssertionError: False is not true : inline test did not hit a single breakpoint
```
---
 lldb/packages/Python/lldbsuite/test/lldbinline.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/lldb/packages/Python/lldbsuite/test/lldbinline.py 
b/lldb/packages/Python/lldbsuite/test/lldbinline.py
index 0b92e25af1a20..76810887a282f 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbinline.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbinline.py
@@ -140,7 +140,13 @@ def do_test(self):
         parser.parse_source_files(source_files)
         parser.set_breakpoints(target)
 
-        process = target.LaunchSimple(None, None, 
self.get_process_working_directory())
+        launch_info = target.GetLaunchInfo()
+        launch_info.SetWorkingDirectory(self.get_process_working_directory())
+        error = lldb.SBError()
+        process = target.Launch(launch_info, error)
+        self.assertTrue(
+            error.Success(), "Failed to launch process: %s" % 
error.GetCString()
+        )
         self.assertIsNotNone(process, PROCESS_IS_VALID)
 
         hit_breakpoints = 0

_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to