Files
clang-p2996/debuginfo-tests/dexter/feature_tests/subtools/test/source-root-dir.cpp
Tobias Bosch 53d6bfef32 [Dexter] Add --source-dir-root flag
Summary:
This allows to run dexter tests with separately compiled
binaries that are specified via --binary if the source file
location changed between compilation and dexter test run.

Reviewers: TWeaver, jmorse, probinson, #debug-info

Reviewed By: jmorse

Subscribers: #debug-info, cmtice, llvm-commits

Tags: #llvm, #debug-info

Differential Revision: https://reviews.llvm.org/D81319
2020-06-18 09:29:08 -07:00

16 lines
397 B
C++

// REQUIRES: lldb
// UNSUPPORTED: system-windows
//
// RUN: %dexter --fail-lt 1.0 -w \
// RUN: --builder 'clang' --debugger 'lldb' \
// RUN: --cflags "-O0 -glldb -fdebug-prefix-map=%S=/changed" \
// RUN: --source-root-dir=%S -- %s
#include <stdio.h>
int main() {
int x = 42;
printf("hello world: %d\n", x); // DexLabel('check')
}
// DexExpectWatchValue('x', 42, on_line='check')