Before this patch, reproducers weren't relocatable. The reproducer contained hard coded paths in the VFS mapping, as well in the yaml file listing the different input files for the command interpreter. This patch changes that: - Use relative paths for the DataCollector. - Use an overlay prefix for the FileCollector. Differential revision: https://reviews.llvm.org/D63467 llvm-svn: 363697
18 lines
966 B
Plaintext
18 lines
966 B
Plaintext
# UNSUPPORTED: system-windows, system-freebsd
|
|
|
|
# Test that we can capture twice to the same directory without breaking the
|
|
# reproducer functionality.
|
|
|
|
# RUN: rm -rf %t.repro
|
|
# RUN: %clang %S/Inputs/simple.c -g -o %t.out
|
|
# RUN: %lldb -x -b -s %S/Inputs/GDBRemoteCapture.in --capture --capture-path %t.repro %t.out | FileCheck %S/TestGDBRemoteRepro.test --check-prefix CHECK --check-prefix CAPTURE
|
|
# RUN: %lldb -x -b -s %S/Inputs/GDBRemoteCapture.in --capture --capture-path %t.repro %t.out | FileCheck %S/TestGDBRemoteRepro.test --check-prefix CHECK --check-prefix CAPTURE
|
|
# RUN: %lldb --replay %t.repro | FileCheck %S/TestGDBRemoteRepro.test --check-prefix CHECK --check-prefix REPLAY
|
|
|
|
# Test that we can replay from a different location, i.e. that the reproducer
|
|
# is relocatable.
|
|
|
|
# RUN: rm -rf %t.repro_moved
|
|
# RUN: mv %t.repro %t.repro_moved
|
|
# RUN: %lldb --replay %t.repro_moved | FileCheck %S/TestGDBRemoteRepro.test --check-prefix CHECK --check-prefix REPLAY
|