Files
clang-p2996/lldb/test/Shell/Target/dependent-modules-nodupe-windows.test
Vladislav Dzhidzhoev 20c4e95b9c [lldb][test] Fix remote Shell tests failures on Windows host (#115716)
Since the remote Shell test execution feature was added, these tests
should now be disabled on Windows target instead of Windows host.

It should fix failures on
https://lab.llvm.org/staging/#/builders/197/builds/76.
2024-11-12 18:03:24 +01:00

25 lines
851 B
Plaintext

# REQUIRES: target-windows
# Checks that dependent modules preloaded by LLDB are not duplicated when the
# process actually loads the DLL.
# RUN: %clang_host -g0 -O0 -shared %S/Inputs/shlib.c -o %t.shlib.dll \
# RUN: %if windows-msvc %{-Wl,-implib:%t.shlib.lib%} \
# RUN: %else %{-Wl,--out-implib=%t.shlib.lib%}
# RUN: %clang_host -g0 -O0 %S/Inputs/main.c %t.shlib.lib -o %t.main.exe
# RUN: %lldb -b -o "#before" -o "target modules list" -o "b main" -o run \
# RUN: -o "#after" -o "target modules list" %t.main.exe | FileCheck %s
# CHECK-LABEL: #before
# CHECK-NEXT: target modules list
# CHECK-NEXT: .main.exe
# CHECK-NEXT: .shlib.dll
# CHECK-LABEL: #after
# CHECK-NEXT: target modules list
# CHECK-NEXT: .main.exe
# CHECK-NEXT: ntdll.dll
# CHECK-NEXT: kernel32.dll
# CHECK: .shlib.dll
# CHECK-NOT: .shlib.dll