From d7cf0f9e59c46054d1dcbbe1b145c19c8ed8de30 Mon Sep 17 00:00:00 2001 From: Tim De Jong Date: Sun, 12 Oct 2025 17:17:47 +0200 Subject: [PATCH] NSError bridging is not available, or doesn't work the same on non-Darwin platforms. Skip testNSErrorBridging on these platforms. --- Tests/GRDBTests/DatabaseErrorTests.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tests/GRDBTests/DatabaseErrorTests.swift b/Tests/GRDBTests/DatabaseErrorTests.swift index e968b4407..d0106ad64 100644 --- a/Tests/GRDBTests/DatabaseErrorTests.swift +++ b/Tests/GRDBTests/DatabaseErrorTests.swift @@ -216,6 +216,9 @@ class DatabaseErrorTests: GRDBTestCase { } func testNSErrorBridging() throws { +#if !canImport(Darwin) + throw XCTSkip("NSError bridging not available on non-Darwin platforms") +#else let dbQueue = try makeDatabaseQueue() try dbQueue.inDatabase { db in try db.create(table: "parents") { $0.column("id", .integer).primaryKey() } @@ -229,5 +232,6 @@ class DatabaseErrorTests: GRDBTestCase { XCTAssertNotNil(error.localizedFailureReason) } } +#endif } }