Skip to content

Commit 9fbb19c

Browse files
committed
Disable bounds safety APINotes tests on non-darwin platforms
These test cases use clang modules. TypeCoupledDeclRefInfo serialization/deserialization is currently broken on Linux, so disable these tests until it's been resolved.
1 parent 013acca commit 9fbb19c

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

clang/test/APINotes/boundssafety-errors.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// rdar://144275431: Clang module support for TypeCoupledDeclRefInfo is broken on Linux
2+
// REQUIRES: system-darwin
3+
14
// RUN: rm -rf %t && mkdir -p %t
25
// RUN: split-file %s %t/Headers
36
// RUN: not %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/ModulesCache -fsyntax-only -fapinotes-modules -I %t/Headers -fexperimental-bounds-safety-attributes %t/Headers/SemaErrors.c 2>&1 | FileCheck %s

clang/test/APINotes/boundssafety.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// rdar://144275431: Clang module support for TypeCoupledDeclRefInfo is broken on Linux
2+
// REQUIRES: system-darwin
3+
14
// RUN: rm -rf %t && mkdir -p %t
25
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/ModulesCache -fsyntax-only -fapinotes-modules -I %S/Inputs/Headers -F %S/Inputs/Frameworks -fexperimental-bounds-safety-attributes %s -ast-dump -ast-dump-filter asdf | FileCheck %s
36

clang/test/APINotes/boundssafety.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// rdar://144275431: Clang module support for TypeCoupledDeclRefInfo is broken on Linux
2+
// REQUIRES: system-darwin
3+
14
// RUN: rm -rf %t && mkdir -p %t
25

36
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/ModulesCache -fsyntax-only -fapinotes-modules -I %S/Inputs/Headers -F %S/Inputs/Frameworks -fexperimental-bounds-safety-attributes %s -ast-dump -ast-dump-filter asdf | FileCheck %s

0 commit comments

Comments
 (0)