[Lldb-commits] [lldb] 04cedfd - [lldb] Add missing includes to some tests (#201804)

via lldb-commits lldb-commits at lists.llvm.org
Fri Jun 5 04:11:33 PDT 2026


Author: Nikolas Klauser
Date: 2026-06-05T11:11:27Z
New Revision: 04cedfd597561be75d46797978f8a744a2715105

URL: https://github.com/llvm/llvm-project/commit/04cedfd597561be75d46797978f8a744a2715105
DIFF: https://github.com/llvm/llvm-project/commit/04cedfd597561be75d46797978f8a744a2715105.diff

LOG: [lldb] Add missing includes to some tests (#201804)

#195509 removed a bunch of transitive includes from libc++, causing the
test to fail.

Added: 
    

Modified: 
    lldb/test/API/iohandler/sigint/cat.cpp
    lldb/test/API/tools/lldb-dap/breakpoint/TestDAP_breakpointLocations.py
    lldb/test/API/tools/lldb-dap/breakpoint/main.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/iohandler/sigint/cat.cpp b/lldb/test/API/iohandler/sigint/cat.cpp
index 7e12cf7df7e58..368f5db75224c 100644
--- a/lldb/test/API/iohandler/sigint/cat.cpp
+++ b/lldb/test/API/iohandler/sigint/cat.cpp
@@ -1,3 +1,4 @@
+#include <cerrno>
 #include <cstdio>
 #include <string>
 #include <unistd.h>

diff  --git a/lldb/test/API/tools/lldb-dap/breakpoint/TestDAP_breakpointLocations.py b/lldb/test/API/tools/lldb-dap/breakpoint/TestDAP_breakpointLocations.py
index 1df5923b18b70..37e7d2ad907f0 100644
--- a/lldb/test/API/tools/lldb-dap/breakpoint/TestDAP_breakpointLocations.py
+++ b/lldb/test/API/tools/lldb-dap/breakpoint/TestDAP_breakpointLocations.py
@@ -80,10 +80,10 @@ def test_column_breakpoints(self):
         # test more portable, only check that all expected breakpoints are
         # presented, but also accept additional breakpoints.
         expected_breakpoints = [
-            {"column": 39, "line": 40},
-            {"column": 51, "line": 40},
-            {"column": 3, "line": 42},
-            {"column": 18, "line": 42},
+            {"column": 39, "line": 41},
+            {"column": 51, "line": 41},
+            {"column": 3, "line": 43},
+            {"column": 18, "line": 43},
         ]
         for bp in expected_breakpoints:
             self.assertIn(bp, response["body"]["breakpoints"])

diff  --git a/lldb/test/API/tools/lldb-dap/breakpoint/main.cpp b/lldb/test/API/tools/lldb-dap/breakpoint/main.cpp
index 2206b07f19494..9788223d9d9b1 100644
--- a/lldb/test/API/tools/lldb-dap/breakpoint/main.cpp
+++ b/lldb/test/API/tools/lldb-dap/breakpoint/main.cpp
@@ -1,6 +1,7 @@
 #include <dlfcn.h>
 #include <stdexcept>
 #include <stdio.h>
+#include <stdlib.h>
 
 int twelve(int i) {
   return 12 + i; // break 12


        


More information about the lldb-commits mailing list