llvm-mirror/test/tools/llvm-dwp/X86/missing_dwo_id.test
Jordan Rupprecht d5a6f226bd [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
2019-02-12 20:00:51 +00:00

8 lines
228 B
Plaintext

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