mirror of
https://github.com/intel/llvm.git
synced 2026-02-08 08:57:43 +08:00
Lit allows you to set environment variables for all tests in a directory using a `lit.local.cfg` file. Do this for the PDB and NativePDB tests.
21 lines
523 B
Plaintext
21 lines
523 B
Plaintext
REQUIRES: system-windows, lld
|
|
RUN: %build --compiler=clang-cl --output=%t.exe %S/Inputs/VariablesLocationsTest.cpp
|
|
RUN: %lldb -b -s %S/Inputs/VariablesLocationsTest.script -- %t.exe | FileCheck %s
|
|
RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -b -s %S/Inputs/VariablesLocationsTest.script -- %t.exe | FileCheck %s
|
|
|
|
CHECK: g_var = 2222
|
|
|
|
CHECK: arg_0 = 1111
|
|
CHECK: arg_1 = 0.123
|
|
|
|
CHECK: loc_0 = 'x'
|
|
CHECK: loc_1 = 0.567
|
|
|
|
CHECK: loc_0 = true
|
|
CHECK: loc_1 = 3333
|
|
|
|
CHECK: arg_0 = 22
|
|
|
|
CHECK: loc_0 = (a = 1234)
|
|
CHECK: loc_1 = 5678
|