1# This tests that the reproducer can deal with relative files. We create a
2# binary in a subdirectory and pass its relative path to LLDB. The subdirectory
3# is removed before replay so that it only exists in the reproducer's VFS.
4
5# RUN: echo "CHECK: %t" > %t.check
6
7# RUN: rm -rf %t.repro
8# RUN: mkdir -p %t.repro
9# RUN: mkdir -p %t
10# RUN: mkdir -p %t/binary
11# RUN: cd %t
12# RUN: %clang_host %S/Inputs/simple.c -g -o binary/reproducer.out
13# RUN: %lldb -x -b -s %S/Inputs/WorkingDir.in --capture --capture-path %t.repro binary/reproducer.out
14# RUN: rm -rf %t/binary
15
16# RUN: cat %t.repro/cwd.txt | FileCheck %t.check
17# RUN: %lldb --replay %t.repro | FileCheck %t.check
18