[llvm] Get rid of "%T" expansions
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
diff --git a/llvm/test/Object/directory.ll b/llvm/test/Object/directory.ll
index c4b0bbf..3e9ac2c 100644
--- a/llvm/test/Object/directory.ll
+++ b/llvm/test/Object/directory.ll
@@ -1,12 +1,12 @@
-;RUN: rm -f %T/test.a
-;RUN: not llvm-ar r %T/test.a . 2>&1 | FileCheck %s
+;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
+;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