mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
e659840bcd
The %T lit expansion expands to a common directory shared between all the tests in the same directory, which is unexpected and unintuitive, and more importantly, it's been a source of subtle race conditions and flaky tests. In https://reviews.llvm.org/D35396, it was agreed that it would be best to simply ban %T and only keep %t, which is unique to each test. When a test needs a temporary directory, it can just create one using mkdir %t. This patch removes %T in llvm. Differential Revision: https://reviews.llvm.org/D36495 llvm-svn: 310953
18 lines
718 B
LLVM
18 lines
718 B
LLVM
; Check that changing the output path via prefix-replace works
|
|
; Use of '/' in paths created here make this unsuitable for Windows.
|
|
; RUN: mkdir -p %t/oldpath
|
|
; RUN: opt -module-summary %s -o %t/oldpath/prefix_replace.o
|
|
; Ensure that there is no existing file at the new path, so we properly
|
|
; test the creation of the new file there.
|
|
; RUN: rm -f %t/newpath/prefix_replace.o.thinlto.bc
|
|
|
|
; RUN: llvm-lto -thinlto-action=thinlink -o %t.index.bc %t/oldpath/prefix_replace.o
|
|
; RUN: llvm-lto -thinlto-action=distributedindexes -thinlto-prefix-replace="%t/oldpath/;%t/newpath/" -thinlto-index %t.index.bc %t/oldpath/prefix_replace.o
|
|
|
|
; RUN: ls %t/newpath/prefix_replace.o.thinlto.bc
|
|
|
|
define void @f() {
|
|
entry:
|
|
ret void
|
|
}
|