Skip to content

Commit 2843761

Browse files
committed
Swift: Special case the xcode-fails-spm-works test results on macOS 26
macOS 26 comes with Xcode 26, which does not call the compiler on the file with the `#error` diagnostic directive.
1 parent 79fd35a commit 2843761

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
| Package.swift:0:0:0:0 | Package.swift |
2+
| Sources/hello-world/hello_world.swift:0:0:0:0 | Sources/hello-world/hello_world.swift |
3+
| file://:0:0:0:0 | |

swift/ql/integration-tests/autobuilder/xcode-fails-spm-works/test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44

55
@runs_on.macos
6-
@pytest.mark.ql_test("DB-CHECK", xfail=True)
6+
@pytest.mark.ql_test("DB-CHECK", xfail=not runs_on.macos_26)
7+
@pytest.mark.ql_test("*", expected=f"{'.macos_26' if runs_on.macos_26 else ''}.expected")
78
def test(codeql, swift):
89
codeql.database.create()

0 commit comments

Comments
 (0)