1f80f15e3SJonas Devlieghere# This tests that the reproducer can deal with relative files. We create a 2f80f15e3SJonas Devlieghere# binary in a subdirectory and pass its relative path to LLDB. The subdirectory 3f80f15e3SJonas 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 10f80f15e3SJonas Devlieghere# RUN: mkdir -p %t/binary 1127ef81cdSJonas Devlieghere# RUN: cd %t 129c739252SPavel Labath# RUN: %clang_host %S/Inputs/simple.c -g -o binary/reproducer.out 13f80f15e3SJonas Devlieghere# RUN: %lldb -x -b -s %S/Inputs/WorkingDir.in --capture --capture-path %t.repro binary/reproducer.out 14f80f15e3SJonas 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*f8df2e1aSJonas Devlieghere 19*f8df2e1aSJonas Devlieghere# Make sure the current working directory is recorded even when it's not 20*f8df2e1aSJonas Devlieghere# referenced. 21*f8df2e1aSJonas Devlieghere 22*f8df2e1aSJonas Devlieghere# RUN: rm -rf %t.repro 23*f8df2e1aSJonas Devlieghere# RUN: mkdir -p %t/probably_unique 24*f8df2e1aSJonas Devlieghere# RUN: cd %t/probably_unique 25*f8df2e1aSJonas Devlieghere# RUN: %lldb -x -b -o 'reproducer generate' --capture --capture-path %t.repro 26*f8df2e1aSJonas Devlieghere# RUN: cat %t.repro/cwd.txt | FileCheck %s 27*f8df2e1aSJonas Devlieghere# CHECK: probably_unique 28