File: dependent-modules-nodupe-windows.test

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (24 lines) | stat: -rw-r--r-- 851 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# REQUIRES: system-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