diff options
Diffstat (limited to 'test/Tooling')
-rw-r--r-- | test/Tooling/auto-detect-from-source-parent-of-cwd.cpp | 2 | ||||
-rw-r--r-- | test/Tooling/auto-detect-from-source-parent.cpp | 2 | ||||
-rw-r--r-- | test/Tooling/auto-detect-from-source.cpp | 2 | ||||
-rw-r--r-- | test/Tooling/clang-check-ast-dump.cpp | 29 | ||||
-rw-r--r-- | test/Tooling/clang-check-autodetect-dir.cpp | 2 | ||||
-rw-r--r-- | test/Tooling/clang-check-pwd.cpp | 2 | ||||
-rw-r--r-- | test/Tooling/pch.cpp | 12 |
7 files changed, 33 insertions, 18 deletions
diff --git a/test/Tooling/auto-detect-from-source-parent-of-cwd.cpp b/test/Tooling/auto-detect-from-source-parent-of-cwd.cpp index 9692edc..6b632b0 100644 --- a/test/Tooling/auto-detect-from-source-parent-of-cwd.cpp +++ b/test/Tooling/auto-detect-from-source-parent-of-cwd.cpp @@ -8,3 +8,5 @@ invalid; // REQUIRES: shell +// PR15590 +// XFAIL: win64 diff --git a/test/Tooling/auto-detect-from-source-parent.cpp b/test/Tooling/auto-detect-from-source-parent.cpp index ea7eb15..f1dbc0f 100644 --- a/test/Tooling/auto-detect-from-source-parent.cpp +++ b/test/Tooling/auto-detect-from-source-parent.cpp @@ -8,3 +8,5 @@ invalid; // REQUIRES: shell +// PR15590 +// XFAIL: win64 diff --git a/test/Tooling/auto-detect-from-source.cpp b/test/Tooling/auto-detect-from-source.cpp index d8e82e7..77e06e7 100644 --- a/test/Tooling/auto-detect-from-source.cpp +++ b/test/Tooling/auto-detect-from-source.cpp @@ -8,3 +8,5 @@ invalid; // REQUIRES: shell +// PR15590 +// XFAIL: win64 diff --git a/test/Tooling/clang-check-ast-dump.cpp b/test/Tooling/clang-check-ast-dump.cpp index 43686bd..d8643c7 100644 --- a/test/Tooling/clang-check-ast-dump.cpp +++ b/test/Tooling/clang-check-ast-dump.cpp @@ -1,16 +1,21 @@ // RUN: clang-check -ast-dump "%s" -- 2>&1 | FileCheck %s -// CHECK: namespace test_namespace -// CHECK-NEXT: class TheClass -// CHECK: int theMethod(int x) (CompoundStmt -// CHECK-NEXT: (ReturnStmt -// CHECK-NEXT: (BinaryOperator +// CHECK: NamespaceDecl{{.*}}test_namespace +// CHECK-NEXT: CXXRecordDecl{{.*}}TheClass +// CHECK: CXXMethodDecl{{.*}}theMethod +// CHECK-NEXT: ParmVarDecl{{.*}}x +// CHECK-NEXT: CompoundStmt +// CHECK-NEXT: ReturnStmt +// CHECK-NEXT: BinaryOperator // // RUN: clang-check -ast-dump -ast-dump-filter test_namespace::TheClass::theMethod "%s" -- 2>&1 | FileCheck -check-prefix CHECK-FILTER %s -// CHECK-FILTER-NOT: namespace test_namespace -// CHECK-FILTER-NOT: class TheClass -// CHECK-FILTER: int theMethod(int x) (CompoundStmt -// CHECK-FILTER-NEXT: (ReturnStmt -// CHECK-FILTER-NEXT: (BinaryOperator +// CHECK-FILTER-NOT: NamespaceDecl +// CHECK-FILTER-NOT: CXXRecordDecl +// CHECK-FILTER: {{^}}Dumping test_namespace::TheClass::theMethod +// CHECK-FILTER-NEXT: {{^}}CXXMethodDecl{{.*}}theMethod +// CHECK-FILTER-NEXT: ParmVarDecl{{.*}}x +// CHECK-FILTER-NEXT: CompoundStmt +// CHECK-FILTER-NEXT: ReturnStmt +// CHECK-FILTER-NEXT: BinaryOperator // // RUN: clang-check -ast-print "%s" -- 2>&1 | FileCheck -check-prefix CHECK-PRINT %s // CHECK-PRINT: namespace test_namespace @@ -25,7 +30,9 @@ // // RUN: clang-check -ast-dump -ast-dump-filter test_namespace::TheClass::n "%s" -- 2>&1 | FileCheck -check-prefix CHECK-ATTR %s // CHECK-ATTR: test_namespace -// CHECK-ATTR-NEXT: int n __attribute__((aligned((BinaryOperator +// CHECK-ATTR-NEXT: FieldDecl{{.*}}n +// CHECK-ATTR-NEXT: AlignedAttr +// CHECK-ATTR-NEXT: BinaryOperator // // RUN: clang-check -ast-dump -ast-dump-filter test_namespace::AfterNullNode "%s" -- 2>&1 | FileCheck -check-prefix CHECK-AFTER-NULL %s // CHECK-AFTER-NULL: class AfterNullNode diff --git a/test/Tooling/clang-check-autodetect-dir.cpp b/test/Tooling/clang-check-autodetect-dir.cpp index 2c39504..39a0c38 100644 --- a/test/Tooling/clang-check-autodetect-dir.cpp +++ b/test/Tooling/clang-check-autodetect-dir.cpp @@ -9,3 +9,5 @@ invalid; // REQUIRES: shell +// PR15590 +// XFAIL: win64 diff --git a/test/Tooling/clang-check-pwd.cpp b/test/Tooling/clang-check-pwd.cpp index 374c579..463ed40 100644 --- a/test/Tooling/clang-check-pwd.cpp +++ b/test/Tooling/clang-check-pwd.cpp @@ -9,3 +9,5 @@ invalid; // REQUIRES: shell +// PR15590 +// XFAIL: win64 diff --git a/test/Tooling/pch.cpp b/test/Tooling/pch.cpp index 715c95d..40bc1e9 100644 --- a/test/Tooling/pch.cpp +++ b/test/Tooling/pch.cpp @@ -6,12 +6,10 @@ // RUN: %clang -x c++-header %S/Inputs/pch.h -o %t1 // Use the generated pch and enforce a subsequent stat miss by using -// the test file with an unrelated include as second translation unit: -// Do not directly pipe into FileCheck, as that would hide errors from -// valgrind due to pipefail not being set in lit. -// RUN: clang-check "%S/Inputs/pch.cpp" "%s" -- -include-pch %t1 -I "%S" -c >%t2 2>&1 -// RUN: FileCheck %s < %t2 +// the test file with an unrelated include as second translation unit. +// Test for an non-empty file after clang-check is executed. +// RUN: clang-check -ast-dump "%S/Inputs/pch.cpp" "%s" -- -include-pch %t1 -I "%S" -c >%t2 2>&1 +// REQUIRES: shell +// RUN: test -s %t2 #include "Inputs/pch-fail.h" - -// CHECK: Processing |