llvm-project/llvm/test/DebugInfo/symbolize-gnu-debuglink-no-realpath.test
Jay Foad 878deaeead
[LLVM] Do not require shell for some tests (#94595)
Remove `REQUIRES: shell` from some tests that seem fine without it.
Tested on Windows and with LIT_USE_INTERNAL_SHELL=1 on Linux.
2024-06-06 20:50:46 +01:00

17 lines
757 B
Plaintext

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