mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-24 22:08:57 -04:00

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
36 lines
2.1 KiB
C
36 lines
2.1 KiB
C
// REQUIRES: case-insensitive-filesystem
|
|
|
|
// RUN: mkdir -p %t/Output/apath
|
|
// RUN: mkdir -p %t/Output/asystempath
|
|
// RUN: cp %S/Inputs/case-insensitive-include.h %t/Output
|
|
// RUN: cp %S/Inputs/case-insensitive-include.h %t/Output/asystempath/case-insensitive-include2.h
|
|
// RUN: cd %t/Output
|
|
// RUN: %clang_cc1 -fsyntax-only %s -include %s -I %t/Output -isystem %t/Output/asystempath -verify
|
|
// RUN: %clang_cc1 -fsyntax-only -fdiagnostics-parseable-fixits %s -include %s -I %t/Output -isystem %t/Output/asystempath 2>&1 | FileCheck %s
|
|
|
|
// Known standard header, so warn:
|
|
#include <StdDef.h> // expected-warning {{non-portable path}}
|
|
// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:10-[[@LINE-1]]:20}:"<stddef.h>"
|
|
|
|
#include "case-insensitive-include.h"
|
|
#include "Case-Insensitive-Include.h" // expected-warning {{non-portable path}}
|
|
// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:10-[[@LINE-1]]:38}:"\"case-insensitive-include.h\""
|
|
|
|
#include "../Output/./case-insensitive-include.h"
|
|
#include "../Output/./Case-Insensitive-Include.h" // expected-warning {{non-portable path}}
|
|
// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:10-[[@LINE-1]]:50}:"\"../Output/./case-insensitive-include.h\""
|
|
#include "../output/./case-insensitive-include.h" // expected-warning {{non-portable path}}
|
|
// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:10-[[@LINE-1]]:50}:"\"../Output/./case-insensitive-include.h\""
|
|
|
|
#include "apath/.././case-insensitive-include.h"
|
|
#include "apath/.././Case-Insensitive-Include.h" // expected-warning {{non-portable path}}
|
|
// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:10-[[@LINE-1]]:49}:"\"apath/.././case-insensitive-include.h\""
|
|
#include "APath/.././case-insensitive-include.h" // For the sake of efficiency, this case is not diagnosed. :-(
|
|
|
|
#include "../Output/./apath/.././case-insensitive-include.h"
|
|
#include "../Output/./APath/.././case-insensitive-include.h" // For the sake of efficiency, this case is not diagnosed. :-(
|
|
#include "../output/./apath/.././case-insensitive-include.h" // expected-warning {{non-portable path}}
|
|
// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:10-[[@LINE-1]]:61}:"\"../Output/./apath/.././case-insensitive-include.h\""
|
|
|
|
#include "CASE-INSENSITIVE-INCLUDE2.H" // Found in an -isystem directory. No warning.
|