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