1f80f15e3SJonas Devlieghere# This tests that the reproducer can deal with relative files. We create a 2*fa126069SJonas Devlieghere# binary in a subdirectory and pass its relative path to LLDB. 327ef81cdSJonas Devlieghere 427ef81cdSJonas Devlieghere# RUN: echo "CHECK: %t" > %t.check 527ef81cdSJonas Devlieghere 627ef81cdSJonas Devlieghere# RUN: rm -rf %t.repro 727ef81cdSJonas Devlieghere# RUN: mkdir -p %t.repro 827ef81cdSJonas Devlieghere# RUN: mkdir -p %t 9f80f15e3SJonas Devlieghere# RUN: mkdir -p %t/binary 1027ef81cdSJonas Devlieghere# RUN: cd %t 119c739252SPavel Labath# RUN: %clang_host %S/Inputs/simple.c -g -o binary/reproducer.out 12f80f15e3SJonas Devlieghere# RUN: %lldb -x -b -s %S/Inputs/WorkingDir.in --capture --capture-path %t.repro binary/reproducer.out 13f80f15e3SJonas Devlieghere# RUN: rm -rf %t/binary 14f4f12012SJonas Devlieghere 1527ef81cdSJonas Devlieghere# RUN: cat %t.repro/cwd.txt | FileCheck %t.check 16f8df2e1aSJonas Devlieghere 17f8df2e1aSJonas Devlieghere# Make sure the current working directory is recorded even when it's not 18f8df2e1aSJonas Devlieghere# referenced. 19f8df2e1aSJonas Devlieghere 20f8df2e1aSJonas Devlieghere# RUN: rm -rf %t.repro 219f8d481dSJonas Devlieghere# RUN: rm -rf %t 22f8df2e1aSJonas Devlieghere# RUN: mkdir -p %t/probably_unique 239f8d481dSJonas Devlieghere# RUN: touch %t/probably_unique/dont_include_me 24f8df2e1aSJonas Devlieghere# RUN: cd %t/probably_unique 25f8df2e1aSJonas Devlieghere# RUN: %lldb -x -b -o 'reproducer generate' --capture --capture-path %t.repro 26f8df2e1aSJonas Devlieghere# RUN: cat %t.repro/cwd.txt | FileCheck %s 27f8df2e1aSJonas Devlieghere# CHECK: probably_unique 281c9cc094SJonas Devlieghere# RUN: cat %t.repro/files.yaml | FileCheck %s --check-prefix VFS 299f8d481dSJonas Devlieghere# VFS: probably_unique 309f8d481dSJonas Devlieghere# VFS-NOT: dont_include_me 31