mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
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.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
| Package.swift:0:0:0:0 | Package.swift |
|
||||
| Sources/hello-world/hello_world.swift:0:0:0:0 | Sources/hello-world/hello_world.swift |
|
||||
| file://:0:0:0:0 | |
|
||||
@@ -3,6 +3,7 @@ import pytest
|
||||
|
||||
|
||||
@runs_on.macos
|
||||
@pytest.mark.ql_test("DB-CHECK", xfail=True)
|
||||
@pytest.mark.ql_test("DB-CHECK", xfail=not runs_on.macos_26)
|
||||
@pytest.mark.ql_test("*", expected=f"{'.macos_26' if runs_on.macos_26 else ''}.expected")
|
||||
def test(codeql, swift):
|
||||
codeql.database.create()
|
||||
|
||||
Reference in New Issue
Block a user