summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2017-07-30 17:26:34 +0000
committerDavid Blaikie <dblaikie@gmail.com>2017-07-30 17:26:34 +0000
commite0c47f9dd8799d8cbc50fe1b216e37bec80e9dbf (patch)
tree93028b17f5c143a14ed184796c01f3134c5a7ca5 /llvm/test
parent58cee4cdfdf68bb60e6ea6f2c5c4b84e07af7760 (diff)
downloadbcm5719-llvm-e0c47f9dd8799d8cbc50fe1b216e37bec80e9dbf.tar.gz
bcm5719-llvm-e0c47f9dd8799d8cbc50fe1b216e37bec80e9dbf.zip
llvm-symbolizer/print_context.c test: Make debug info path independent
llvm-svn: 309518
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/tools/llvm-symbolizer/Inputs/print_context.obin3264 -> 3144 bytes
-rw-r--r--llvm/test/tools/llvm-symbolizer/print_context.c7
2 files changed, 6 insertions, 1 deletions
diff --git a/llvm/test/tools/llvm-symbolizer/Inputs/print_context.o b/llvm/test/tools/llvm-symbolizer/Inputs/print_context.o
index 0424b376fcf..2bc5f0b75a1 100644
--- a/llvm/test/tools/llvm-symbolizer/Inputs/print_context.o
+++ b/llvm/test/tools/llvm-symbolizer/Inputs/print_context.o
Binary files differ
diff --git a/llvm/test/tools/llvm-symbolizer/print_context.c b/llvm/test/tools/llvm-symbolizer/print_context.c
index 5bc3b18c900..b0cda57d6ba 100644
--- a/llvm/test/tools/llvm-symbolizer/print_context.c
+++ b/llvm/test/tools/llvm-symbolizer/print_context.c
@@ -9,9 +9,14 @@ int main() {
return 0;
}
-// RUN: echo "%p/Inputs/print_context.o 0x0" | llvm-symbolizer -print-source-context-lines=5 | FileCheck %s
+// RUN: cp %s %T
+// RUN: cp %p/Inputs/print_context.o %T
+// RUN: cd %T
+// RUN: echo "%T/print_context.o 0x0" | llvm-symbolizer -print-source-context-lines=5 | FileCheck %s
// Inputs/print_context.o built with plain -g -c from this source file
+// Specifying -Xclang -fdebug-compilation-dir -Xclang . to make the debug info
+// location independent.
// CHECK: inc
// CHECK: print_context.c:3
OpenPOWER on IntegriCloud