1 # UNSUPPORTED: system-windows
2 # Ensures that .debuglink can fallback to a separate location. This is normally
3 # /usr/lib/debug (or /usr/libdata/debug for NetBSD), but can be configured on
4 # the command line (mainly for testing).
6 RUN: rm -rf %t/foo %t/bar
7 RUN: mkdir -p %t/foo %t/bar/%t/foo
9 RUN: cp %p/Inputs/dwarfdump-test.elf-x86-64.debuglink %t/foo
11 RUN: llvm-symbolizer --obj=%t/foo/dwarfdump-test.elf-x86-64.debuglink 0x40113f \
12 RUN: --fallback-debug-path=%t/bar | FileCheck %s --check-prefix=UNKNOWN
17 RUN: cp %p/Inputs/dwarfdump-test.elf-x86-64 %t/bar/%t/foo
18 RUN: llvm-symbolizer --obj=%t/foo/dwarfdump-test.elf-x86-64.debuglink 0x40113f \
19 RUN: --fallback-debug-path=%t/bar | FileCheck %s --check-prefix=FOUND
22 FOUND-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test.cc:16