mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-14 06:29:38 +00:00
![Kuba Mracek](/assets/img/avatar_default.png)
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 clang. Differential Revision: https://reviews.llvm.org/D36437 llvm-svn: 310950
22 lines
925 B
C
22 lines
925 B
C
// UNSUPPORTED: system-windows
|
|
// REQUIRES: x86-registered-target
|
|
|
|
// RUN: mkdir -p %t
|
|
// RUN: rm -f %t/orbis-ld
|
|
// RUN: touch %t/orbis-ld
|
|
// RUN: chmod +x %t/orbis-ld
|
|
|
|
// RUN: env "PATH=%t:%PATH%" %clang -### -target x86_64-scei-ps4 %s -fuse-ld=gold 2>&1 \
|
|
// RUN: | FileCheck --check-prefix=CHECK-PS4-LINKER %s
|
|
// RUN: env "PATH=%t:%PATH%" %clang -### -target x86_64-scei-ps4 %s -shared 2>&1 \
|
|
// RUN: | FileCheck --check-prefix=CHECK-PS4-LINKER %s
|
|
|
|
// RUN: env "PATH=%t:%PATH%" %clang -### -target x86_64-scei-ps4 %s 2>&1 \
|
|
// RUN: | FileCheck --check-prefix=CHECK-PS4-LINKER %s
|
|
// RUN: env "PATH=%t:%PATH%" %clang -### -target x86_64-scei-ps4 %s -fuse-ld=ps4 2>&1 \
|
|
// RUN: | FileCheck --check-prefix=CHECK-PS4-LINKER %s
|
|
// RUN: env "PATH=%t:%PATH%" %clang -### -target x86_64-scei-ps4 %s -shared \
|
|
// RUN: -fuse-ld=ps4 2>&1 | FileCheck --check-prefix=CHECK-PS4-LINKER %s
|
|
|
|
// CHECK-PS4-LINKER: /orbis-ld
|