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