[Lldb-commits] [lldb] [lldb][Windows] Relax dependent-modules-nodupe-windows OS-DLL ordering (PR #203305)
Charles Zablit via lldb-commits
lldb-commits at lists.llvm.org
Thu Jun 11 08:25:35 PDT 2026
https://github.com/charles-zablit created https://github.com/llvm/llvm-project/pull/203305
The post-run "target modules list" output orders the OS DLLs (ntdll, kernel32, ...) by load address, which differs between the in-process debugger and the lldb-server-on-Windows path. The exact order is not what this test cares about. The goal is to verify that preloaded dependent modules are not duplicated once the inferior actually loads the DLL.
This patch replaces `CHECK-NEXT/CHECK` lines with `CHECK-DAG`, keeping the trailing `CHECK-NOT` to enforce no duplicate `shlib.dll` entry.
>From 4333b22cdd7c2a179d3eafbe827500dc1d3a4776 Mon Sep 17 00:00:00 2001
From: Charles Zablit <c_zablit at apple.com>
Date: Sun, 7 Jun 2026 22:10:37 +0100
Subject: [PATCH] [lldb][Windows] Relax dependent-modules-nodupe-windows OS-DLL
ordering
---
.../Shell/Target/dependent-modules-nodupe-windows.test | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lldb/test/Shell/Target/dependent-modules-nodupe-windows.test b/lldb/test/Shell/Target/dependent-modules-nodupe-windows.test
index 7478ff966aa0d..f84714869dd48 100644
--- a/lldb/test/Shell/Target/dependent-modules-nodupe-windows.test
+++ b/lldb/test/Shell/Target/dependent-modules-nodupe-windows.test
@@ -18,8 +18,8 @@
# CHECK-LABEL: #after
# CHECK-NEXT: target modules list
-# CHECK-NEXT: .main.exe
-# CHECK-NEXT: ntdll.dll
-# CHECK-NEXT: kernel32.dll
-# CHECK: .shlib.dll
+# CHECK-DAG: .main.exe
+# CHECK-DAG: ntdll.dll
+# CHECK-DAG: kernel32.dll
+# CHECK-DAG: .shlib.dll
# CHECK-NOT: .shlib.dll
More information about the lldb-commits
mailing list