diff options
| author | Jordan Rupprecht <rupprecht@google.com> | 2019-02-12 20:00:51 +0000 |
|---|---|---|
| committer | Jordan Rupprecht <rupprecht@google.com> | 2019-02-12 20:00:51 +0000 |
| commit | 706a965295618cadbc1a27098f1a015590e7a392 (patch) | |
| tree | 85948d780330e3b37458696ab080b1452f47a7e4 /llvm/test/tools/llvm-dwp | |
| parent | a3be17ea1cf0414ffd9744491ba22a6dd6157369 (diff) | |
| download | bcm5719-llvm-706a965295618cadbc1a27098f1a015590e7a392.tar.gz bcm5719-llvm-706a965295618cadbc1a27098f1a015590e7a392.zip | |
[llvm-dwp] Avoid writing the output dwp file when there is an error
Summary: Use ToolOutputFile to clean up the output file unless dwp actually finishes successfully.
Reviewers: dblaikie
Reviewed By: dblaikie
Subscribers: jdoerfert, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D58130
llvm-svn: 353873
Diffstat (limited to 'llvm/test/tools/llvm-dwp')
| -rw-r--r-- | llvm/test/tools/llvm-dwp/X86/missing_dwo_id.test | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-dwp/X86/missing_dwo_id.test b/llvm/test/tools/llvm-dwp/X86/missing_dwo_id.test index a07bcb8fb9b..bb5eddccd22 100644 --- a/llvm/test/tools/llvm-dwp/X86/missing_dwo_id.test +++ b/llvm/test/tools/llvm-dwp/X86/missing_dwo_id.test @@ -1,3 +1,7 @@ +RUN: rm -f %t RUN: not llvm-dwp %p/../Inputs/missing_dwo_id.dwo -o %t 2>&1 | FileCheck %s +Make sure we did not leave behind a temporary file: +RUN: not ls %t + CHECK: error: {{.*}}missing_dwo_id.dwo': compile unit missing dwo_id |

