[Lldb-commits] [lldb] 297cb72 - [lldb][Windows] Relax dependent-modules-nodupe-windows OS-DLL ordering (#203305)

via lldb-commits lldb-commits at lists.llvm.org
Thu Jun 11 08:59:02 PDT 2026


Author: Charles Zablit
Date: 2026-06-11T16:58:57+01:00
New Revision: 297cb7232735f5426015c57216dc7910f3055e86

URL: https://github.com/llvm/llvm-project/commit/297cb7232735f5426015c57216dc7910f3055e86
DIFF: https://github.com/llvm/llvm-project/commit/297cb7232735f5426015c57216dc7910f3055e86.diff

LOG: [lldb][Windows] Relax dependent-modules-nodupe-windows OS-DLL ordering (#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.

rdar://179367320

Added: 
    

Modified: 
    lldb/test/Shell/Target/dependent-modules-nodupe-windows.test

Removed: 
    


################################################################################
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