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 18f8df2e1aSJonas Devlieghere 19f8df2e1aSJonas Devlieghere# Make sure the current working directory is recorded even when it's not 20f8df2e1aSJonas Devlieghere# referenced. 21f8df2e1aSJonas Devlieghere 22f8df2e1aSJonas Devlieghere# RUN: rm -rf %t.repro 23*9f8d481dSJonas Devlieghere# RUN: rm -rf %t 24f8df2e1aSJonas Devlieghere# RUN: mkdir -p %t/probably_unique 25*9f8d481dSJonas Devlieghere# RUN: touch %t/probably_unique/dont_include_me 26f8df2e1aSJonas Devlieghere# RUN: cd %t/probably_unique 27f8df2e1aSJonas Devlieghere# RUN: %lldb -x -b -o 'reproducer generate' --capture --capture-path %t.repro 28f8df2e1aSJonas Devlieghere# RUN: cat %t.repro/cwd.txt | FileCheck %s 29f8df2e1aSJonas Devlieghere# CHECK: probably_unique 30*9f8d481dSJonas Devlieghere# RUN: cat %t.repro/files.yaml | FileCHeck %s --check-prefix VFS 31*9f8d481dSJonas Devlieghere# VFS: probably_unique 32*9f8d481dSJonas Devlieghere# VFS-NOT: dont_include_me 33