Skip to content

Commit

Permalink
Disable bounds safety APINotes tests on non-darwin platforms
Browse files Browse the repository at this point in the history
These test cases use clang modules. TypeCoupledDeclRefInfo
serialization/deserialization is currently broken on Linux, so disable
these tests until it's been resolved.
  • Loading branch information
hnrklssn committed Feb 6, 2025
1 parent 013acca commit 9fbb19c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions clang/test/APINotes/boundssafety-errors.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// rdar://144275431: Clang module support for TypeCoupledDeclRefInfo is broken on Linux
// REQUIRES: system-darwin

// RUN: rm -rf %t && mkdir -p %t
// RUN: split-file %s %t/Headers
// 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
Expand Down
3 changes: 3 additions & 0 deletions clang/test/APINotes/boundssafety.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// rdar://144275431: Clang module support for TypeCoupledDeclRefInfo is broken on Linux
// REQUIRES: system-darwin

// RUN: rm -rf %t && mkdir -p %t
// 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

Expand Down
3 changes: 3 additions & 0 deletions clang/test/APINotes/boundssafety.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// rdar://144275431: Clang module support for TypeCoupledDeclRefInfo is broken on Linux
// REQUIRES: system-darwin

// RUN: rm -rf %t && mkdir -p %t

// 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
Expand Down

0 comments on commit 9fbb19c

Please sign in to comment.