NSError bridging is not available, or doesn't work the same on non-Darwin platforms. Skip testNSErrorBridging on these platforms.

This commit is contained in:
Tim De Jong authored and Gwendal Roué committed 2025-10-12 18:03:57 +02:00
1 parent 389c3e0d4a
commit d7cf0f9e59
1 file changed
+4
+4
View File
@@ -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
}
}