diff options
author | Martin Storsjo <martin@martin.st> | 2019-10-17 19:22:50 +0000 |
---|---|---|
committer | Martin Storsjo <martin@martin.st> | 2019-10-17 19:22:50 +0000 |
commit | e732094d4ab65b20227ca041e2b9b29ef11c4fb3 (patch) | |
tree | 2c75d48cd2d90e177bfa1115fdc321f94c552739 | |
parent | aaefd8122db54c84a037fa8c8b77ded4c824957b (diff) |
[LLDB] [test] Use %clang_cl instead of build.py in a few tests
This allows explicitly specifying the intended target architecture,
for tests that aren't supposed to be executed, and that don't
require MSVC headers or libraries to be available.
(These tests already implicitly assumed to be built for x86; one
didn't specify anything, assuming x86_64, while the other specified
--arch=32, which only picks the 32 bit variant of the default target
architecture).
Join two comment lines in disassembly.cpp, to keep row numbers
checked in the test unchanged.
This fixes running check-lldb on arm linux.
Differential Revision: https://reviews.llvm.org/D69031
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@375156 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Shell/SymbolFile/NativePDB/disassembly.cpp | 6 | ||||
-rw-r--r-- | test/Shell/SymbolFile/NativePDB/function-types-calling-conv.cpp | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/test/Shell/SymbolFile/NativePDB/disassembly.cpp b/test/Shell/SymbolFile/NativePDB/disassembly.cpp index 3553f29ce..be0575541 100644 --- a/test/Shell/SymbolFile/NativePDB/disassembly.cpp +++ b/test/Shell/SymbolFile/NativePDB/disassembly.cpp @@ -2,12 +2,12 @@ // REQUIRES: lld // Test that we can show disassembly and source. -// RUN: %build --compiler=clang-cl --nodefaultlib -o %t.exe -- %s +// RUN: %clang_cl --target=x86_64-windows-msvc -Od -Z7 -c /Fo%t.obj -- %s +// RUN: lld-link -debug:full -nodefaultlib -entry:main %t.obj -out:%t.exe -pdb:%t.pdb // RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \ // RUN: %p/Inputs/disassembly.lldbinit | FileCheck %s -// Some context lines before -// the function. +// Some context lines before the function. int foo() { return 42; } diff --git a/test/Shell/SymbolFile/NativePDB/function-types-calling-conv.cpp b/test/Shell/SymbolFile/NativePDB/function-types-calling-conv.cpp index cd13159d5..312fd1e64 100644 --- a/test/Shell/SymbolFile/NativePDB/function-types-calling-conv.cpp +++ b/test/Shell/SymbolFile/NativePDB/function-types-calling-conv.cpp @@ -1,7 +1,8 @@ // clang-format off // REQUIRES: lld -// RUN: %build --compiler=clang-cl --arch=32 --nodefaultlib -o %t.exe -- %s +// RUN: %clang_cl --target=i386-windows-msvc -Od -Z7 -c /Fo%t.obj -- %s +// RUN: lld-link -debug:full -nodefaultlib -entry:main %t.obj -out:%t.exe -pdb:%t.pdb // RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \ // RUN: %p/Inputs/function-types-calling-conv.lldbinit | FileCheck %s |