remove temporal file directory before testing in thinlto-debug-fission.ll

Summary:
This removes the %T/dwo directory before calling ld.lld in ELF/lto/thinlto-debug-fission.ll so that
files aren't left over from previous runs.

Reviewers: espindola, pcc

Reviewed By: pcc

Subscribers: inglorion, emaste, arichardson, eraman, steven_wu, dexonsmith, llvm-commits

Differential Revision: https://reviews.llvm.org/D49390

llvm-svn: 337210
This commit is contained in:
Yunlian Jiang 2018-07-16 20:28:48 +00:00
parent b5ea4df0eb
commit 588afe422e
1 changed files with 1 additions and 1 deletions

View File

@ -1,11 +1,11 @@
; REQUIRES: x86
; RUN: opt %s -o %t1.o
; RUN: rm -rf %T/dwo
; Test to ensure that --plugin-opt=dwo_dir=$DIR creates .dwo files under $DIR
; RUN: ld.lld --plugin-opt=dwo_dir=%T/dwo -shared %t1.o -o /dev/null
; RUN: llvm-readobj -h %T/dwo/0.dwo | FileCheck %s
; RUN: rm -rf %T/dwo
; CHECK: Format: ELF64-x86-64