1*f80f15e3SJonas Devlieghere# This tests that the reproducer can deal with relative files. We create a
2*f80f15e3SJonas Devlieghere# binary in a subdirectory and pass its relative path to LLDB. The subdirectory
3*f80f15e3SJonas Devlieghere# is removed before replay so that it only exists in the reproducer's VFS.
427ef81cdSJonas Devlieghere
527ef81cdSJonas Devlieghere# RUN: echo "CHECK: %t" > %t.check
627ef81cdSJonas Devlieghere
727ef81cdSJonas Devlieghere# RUN: rm -rf %t.repro
827ef81cdSJonas Devlieghere# RUN: mkdir -p %t.repro
927ef81cdSJonas Devlieghere# RUN: mkdir -p %t
10*f80f15e3SJonas Devlieghere# RUN: mkdir -p %t/binary
1127ef81cdSJonas Devlieghere# RUN: cd %t
12*f80f15e3SJonas Devlieghere# RUN: %clang %S/Inputs/simple.c -g -o binary/reproducer.out
13*f80f15e3SJonas Devlieghere# RUN: %lldb -x -b -s %S/Inputs/WorkingDir.in --capture --capture-path %t.repro binary/reproducer.out
14*f80f15e3SJonas Devlieghere# RUN: rm -rf %t/binary
15f4f12012SJonas Devlieghere
1627ef81cdSJonas Devlieghere# RUN: cat %t.repro/cwd.txt | FileCheck %t.check
17f4f12012SJonas Devlieghere# RUN: %lldb --replay %t.repro | FileCheck %t.check
18