Skip to content

Commit 2c4acfe

Browse files
Nerixyzgithub-actions[bot]
authored andcommitted
Automerge: [LLDB] Run a few more PDB tests with native PDB as well (#152580)
Some DIA PDB tests pass with the native plugin already, but didn't test this. This adds test runs with the native plugin - no functional changes. In addition to the x86 calling convention test, there's also https://github.com/llvm/llvm-project/blob/9f102a90042fd3757c207112cfe64ee10182ace5/lldb/test/Shell/SymbolFile/PDB/calling-conventions-arm.test, but I can't test this.
2 parents 5a1a4c4 + 41b5880 commit 2c4acfe

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

lldb/test/Shell/SymbolFile/PDB/ast-restore.test

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,19 @@ RUN: %build --compiler=msvc --nodefaultlib --output=%t.exe %S/Inputs/AstRestoreT
33
RUN: lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix=ENUM %s
44
RUN: env LLDB_USE_NATIVE_PDB_READER=1 lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix=ENUM %s
55
RUN: lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix=GLOBAL %s
6+
RUN: env LLDB_USE_NATIVE_PDB_READER=1 lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix=GLOBAL %s
67
RUN: lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix=BASE %s
8+
RUN: env LLDB_USE_NATIVE_PDB_READER=1 lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix=BASE %s
79
RUN: lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix=CLASS %s
810
RUN: env LLDB_USE_NATIVE_PDB_READER=1 lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix=CLASS %s
911
RUN: lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix=INNER %s
12+
RUN: env LLDB_USE_NATIVE_PDB_READER=1 lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix=INNER %s
1013
RUN: lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix=TEMPLATE %s
14+
RUN: env LLDB_USE_NATIVE_PDB_READER=1 lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix=TEMPLATE %s
1115
RUN: lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix=FOO %s
16+
RUN: env LLDB_USE_NATIVE_PDB_READER=1 lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix=FOO %s
1217
RUN: lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix=MAIN %s
18+
RUN: env LLDB_USE_NATIVE_PDB_READER=1 lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix=MAIN %s
1319

1420
ENUM: Module: {{.*}}
1521
ENUM: namespace N0 {

lldb/test/Shell/SymbolFile/PDB/calling-conventions-x86.test

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
REQUIRES: system-windows, lld, (target-x86 || target-x86_64)
2-
RUN: %build --compiler=clang-cl --arch=32 --nodefaultlib --output=%t.exe %S/Inputs/CallingConventionsTest.cpp \
3-
RUN: && lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix 32BIT-CHECK %s
4-
RUN: %build --compiler=clang-cl --arch=64 --nodefaultlib --output=%t.exe %S/Inputs/CallingConventionsTest.cpp \
5-
RUN: && lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix 64BIT-CHECK %s
2+
3+
RUN: %build --compiler=clang-cl --arch=32 --nodefaultlib --output=%t-32.exe %S/Inputs/CallingConventionsTest.cpp
4+
RUN: lldb-test symbols -dump-ast %t-32.exe | FileCheck --check-prefix 32BIT-CHECK %s
5+
RUN: env LLDB_USE_NATIVE_PDB_READER=1 lldb-test symbols -dump-ast %t-32.exe | FileCheck --check-prefix 32BIT-CHECK %s
6+
7+
RUN: %build --compiler=clang-cl --arch=64 --nodefaultlib --output=%t-64.exe %S/Inputs/CallingConventionsTest.cpp
8+
RUN: lldb-test symbols -dump-ast %t-64.exe | FileCheck --check-prefix 64BIT-CHECK %s
9+
RUN: env LLDB_USE_NATIVE_PDB_READER=1 lldb-test symbols -dump-ast %t-64.exe | FileCheck --check-prefix 64BIT-CHECK %s
610

711
64BIT-CHECK: Module: {{.*}}
812
64BIT-CHECK-DAG: int (*FuncCCallPtr)();

lldb/test/Shell/SymbolFile/PDB/vbases.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
REQUIRES: target-windows, lld
22
RUN: %build --compiler=clang-cl --output=%t.exe %S/Inputs/VBases.cpp
33
RUN: %lldb -b -s %S/Inputs/VBases.script -- %t.exe | FileCheck %s
4+
RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -b -s %S/Inputs/VBases.script -- %t.exe | FileCheck %s
45

56
CHECK: {
67
CHECK: A = (a = '\x01')

0 commit comments

Comments
 (0)