This is part of a bigger rework of the reproducer feature. See [1] for more details. [1] https://lists.llvm.org/pipermail/lldb-dev/2021-September/017045.html
31 lines
1.0 KiB
Plaintext
31 lines
1.0 KiB
Plaintext
# This tests that the reproducer can deal with relative files. We create a
|
|
# binary in a subdirectory and pass its relative path to LLDB.
|
|
|
|
# RUN: echo "CHECK: %t" > %t.check
|
|
|
|
# RUN: rm -rf %t.repro
|
|
# RUN: mkdir -p %t.repro
|
|
# RUN: mkdir -p %t
|
|
# RUN: mkdir -p %t/binary
|
|
# RUN: cd %t
|
|
# RUN: %clang_host %S/Inputs/simple.c -g -o binary/reproducer.out
|
|
# RUN: %lldb -x -b -s %S/Inputs/WorkingDir.in --capture --capture-path %t.repro binary/reproducer.out
|
|
# RUN: rm -rf %t/binary
|
|
|
|
# RUN: cat %t.repro/cwd.txt | FileCheck %t.check
|
|
|
|
# Make sure the current working directory is recorded even when it's not
|
|
# referenced.
|
|
|
|
# RUN: rm -rf %t.repro
|
|
# RUN: rm -rf %t
|
|
# RUN: mkdir -p %t/probably_unique
|
|
# RUN: touch %t/probably_unique/dont_include_me
|
|
# RUN: cd %t/probably_unique
|
|
# RUN: %lldb -x -b -o 'reproducer generate' --capture --capture-path %t.repro
|
|
# RUN: cat %t.repro/cwd.txt | FileCheck %s
|
|
# CHECK: probably_unique
|
|
# RUN: cat %t.repro/files.yaml | FileCheck %s --check-prefix VFS
|
|
# VFS: probably_unique
|
|
# VFS-NOT: dont_include_me
|