mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-24 18:20:38 +00:00
5b57633a45
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
17 lines
658 B
C
17 lines
658 B
C
// RUN: %clang_cc1 -fsyntax-only -Wall -pedantic -verify %s
|
|
// RUN: mkdir -p %t-dir
|
|
// RUN: cp %s %t-dir/fixit-include.c
|
|
// RUN: cp %S/fixit-include.h %t-dir/fixit-include.h
|
|
// RUN: not %clang_cc1 -fsyntax-only -fixit %t-dir/fixit-include.c
|
|
// RUN: %clang_cc1 -Wall -pedantic %t-dir/fixit-include.c
|
|
// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
|
|
|
|
#include <fixit-include.h> // expected-error {{'fixit-include.h' file not found with <angled> include; use "quotes" instead}}
|
|
// CHECK: fix-it:{{.*}}:{9:10-9:27}
|
|
|
|
#pragma does_not_exist // expected-warning {{unknown pragma ignored}}
|
|
|
|
int main( void ) {
|
|
return 0;
|
|
}
|