diff options
author | Kuba Mracek <mracek@apple.com> | 2017-08-15 19:47:06 +0000 |
---|---|---|
committer | Kuba Mracek <mracek@apple.com> | 2017-08-15 19:47:06 +0000 |
commit | 5b57633a45a5072b4292a98d68eb4ddb4f2b63b6 (patch) | |
tree | 3c09b2c2ead9c38125e589295068e7a8673deeea /clang/test/Lexer/case-insensitive-include-ms.c | |
parent | 0464c5d958065c571a605f5da3cfd4b729950be7 (diff) | |
download | bcm5719-llvm-5b57633a45a5072b4292a98d68eb4ddb4f2b63b6.tar.gz bcm5719-llvm-5b57633a45a5072b4292a98d68eb4ddb4f2b63b6.zip |
[clang] 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 clang.
Differential Revision: https://reviews.llvm.org/D36437
llvm-svn: 310950
Diffstat (limited to 'clang/test/Lexer/case-insensitive-include-ms.c')
-rw-r--r-- | clang/test/Lexer/case-insensitive-include-ms.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/test/Lexer/case-insensitive-include-ms.c b/clang/test/Lexer/case-insensitive-include-ms.c index 86bd8bba68e..a7101544fe2 100644 --- a/clang/test/Lexer/case-insensitive-include-ms.c +++ b/clang/test/Lexer/case-insensitive-include-ms.c @@ -1,10 +1,10 @@ // REQUIRES: case-insensitive-filesystem -// RUN: mkdir -p %T/apath -// RUN: cp %S/Inputs/case-insensitive-include.h %T -// RUN: cd %T -// RUN: %clang_cc1 -fsyntax-only -fms-compatibility %s -include %s -I %T -verify -// RUN: %clang_cc1 -fsyntax-only -fms-compatibility -fdiagnostics-parseable-fixits %s -include %s -I %T 2>&1 | FileCheck %s +// RUN: mkdir -p %t/Output/apath +// RUN: cp %S/Inputs/case-insensitive-include.h %t/Output +// RUN: cd %t/Output +// RUN: %clang_cc1 -fsyntax-only -fms-compatibility %s -include %s -I %t/Output -verify +// RUN: %clang_cc1 -fsyntax-only -fms-compatibility -fdiagnostics-parseable-fixits %s -include %s -I %t/Output 2>&1 | FileCheck %s #include "..\Output\.\case-insensitive-include.h" #include "..\Output\.\Case-Insensitive-Include.h" // expected-warning {{non-portable path}} |