summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-dwp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2018-09-06 00:06:25 +0000
committerFangrui Song <maskray@google.com>2018-09-06 00:06:25 +0000
commit57575e11d1397eaca3174044a85648e3c94f8878 (patch)
tree8ee30729fee582f95d4fde2399c59869c771bf81 /llvm/test/tools/llvm-dwp
parent5cda1b802d11942b906eeef2019da020dde55408 (diff)
downloadbcm5719-llvm-57575e11d1397eaca3174044a85648e3c94f8878.tar.gz
bcm5719-llvm-57575e11d1397eaca3174044a85648e3c94f8878.zip
[llvm-dwp] Use buffer_stream if output file is not seekable (e.g. "-")
Reviewers: dblaikie, pcc Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D51707 llvm-svn: 341509
Diffstat (limited to 'llvm/test/tools/llvm-dwp')
-rw-r--r--llvm/test/tools/llvm-dwp/X86/merge.test6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/test/tools/llvm-dwp/X86/merge.test b/llvm/test/tools/llvm-dwp/X86/merge.test
index c9ba6d17742..ea0adcc9521 100644
--- a/llvm/test/tools/llvm-dwp/X86/merge.test
+++ b/llvm/test/tools/llvm-dwp/X86/merge.test
@@ -1,7 +1,5 @@
-RUN: llvm-dwp %p/../Inputs/merge/notypes/c.dwo %p/../Inputs/merge/notypes/ab.dwp -o %t
-RUN: llvm-dwarfdump -v %t | FileCheck --check-prefix=CHECK --check-prefix=NOTYP %s
-
-FIXME: For some reason, piping straight from llvm-dwp to llvm-dwarfdump -v doesn't behave well - looks like dwarfdump is reading/closes before dwp has finished.
+RUN: llvm-dwp %p/../Inputs/merge/notypes/c.dwo %p/../Inputs/merge/notypes/ab.dwp -o - | \
+RUN: llvm-dwarfdump -v - | FileCheck --check-prefix=CHECK --check-prefix=NOTYP %s
DWP from a DWO (c.dwo) and a DWP (ab.dwp, created from a.dwo and b.dwo)
Make sure the entries for A and B are updated correctly when read/processed from ab.dwp
OpenPOWER on IntegriCloud