mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-12 05:56:28 +00: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
14 lines
450 B
LLVM
14 lines
450 B
LLVM
;RUN: rm -rf %t && mkdir -p %t
|
|
;RUN: not llvm-ar r %t/test.a . 2>&1 | FileCheck %s
|
|
;CHECK: .: {{I|i}}s a directory
|
|
|
|
;RUN: rm -f %t/test.a
|
|
;RUN: touch %t/a-very-long-file-name
|
|
;RUN: llvm-ar r %t/test.a %s %t/a-very-long-file-name
|
|
;RUN: llvm-ar r %t/test.a %t/a-very-long-file-name
|
|
;RUN: llvm-ar t %t/test.a | FileCheck -check-prefix=MEMBERS %s
|
|
;MEMBERS-NOT: /
|
|
;MEMBERS: directory.ll
|
|
;MEMBERS: a-very-long-file-name
|
|
;MEMBERS-NOT: a-very-long-file-name
|