1 # This test uses symlinks.
2 UNSUPPORTED: system-windows
4 # Ensure that no realpath assumptions are made about .gnu_debuglink paths.
6 # Copy inputs to some other location with arbitrary names, with the original
7 # filenames just being symlinks to the copies. Real files go in the "real" dir,
8 # symlinks (with original names) go in "syms".
9 RUN: rm -rf %t/real %t/syms
10 RUN: mkdir -p %t/real %t/syms
11 RUN: cp %p/Inputs/dwarfdump-test.elf-x86-64 %t/real/prog
12 RUN: cp %p/Inputs/dwarfdump-test.elf-x86-64.debuglink %t/real/link
13 RUN: ln -s %t/real/prog %t/syms/dwarfdump-test.elf-x86-64
14 RUN: ln -s %t/real/link %t/syms/dwarfdump-test.elf-x86-64.debuglink
16 RUN: llvm-symbolizer --obj=%t/syms/dwarfdump-test.elf-x86-64.debuglink 0x40113f | FileCheck %s
19 CHECK-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test.cc:16