diff options
Diffstat (limited to 'lldb/test/Shell/Reproducer/TestWorkingDir.test')
-rw-r--r-- | lldb/test/Shell/Reproducer/TestWorkingDir.test | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lldb/test/Shell/Reproducer/TestWorkingDir.test b/lldb/test/Shell/Reproducer/TestWorkingDir.test index cef57e86511..c2f01244777 100644 --- a/lldb/test/Shell/Reproducer/TestWorkingDir.test +++ b/lldb/test/Shell/Reproducer/TestWorkingDir.test @@ -1,13 +1,17 @@ -# This tests relative capture paths. +# This tests that the reproducer can deal with relative files. We create a +# binary in a subdirectory and pass its relative path to LLDB. The subdirectory +# is removed before replay so that it only exists in the reproducer's VFS. # RUN: echo "CHECK: %t" > %t.check # RUN: rm -rf %t.repro # RUN: mkdir -p %t.repro # RUN: mkdir -p %t +# RUN: mkdir -p %t/binary # RUN: cd %t -# RUN: %clang %S/Inputs/simple.c -g -o %t/reproducer.out -# RUN: %lldb -x -b -s %S/Inputs/WorkingDir.in --capture --capture-path %t.repro %t/reproducer.out +# RUN: %clang %S/Inputs/simple.c -g -o binary/reproducer.out +# RUN: %lldb -x -b -s %S/Inputs/WorkingDir.in --capture --capture-path %t.repro binary/reproducer.out +# RUN: rm -rf %t/binary # RUN: cat %t.repro/cwd.txt | FileCheck %t.check # RUN: %lldb --replay %t.repro | FileCheck %t.check |