Skip to content

Commit d7cf0f9

Browse files
Tim De Jonggroue
authored andcommitted
NSError bridging is not available, or doesn't work the same on non-Darwin platforms. Skip testNSErrorBridging on these platforms.
1 parent 389c3e0 commit d7cf0f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/GRDBTests/DatabaseErrorTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,9 @@ class DatabaseErrorTests: GRDBTestCase {
216216
}
217217

218218
func testNSErrorBridging() throws {
219+
#if !canImport(Darwin)
220+
throw XCTSkip("NSError bridging not available on non-Darwin platforms")
221+
#else
219222
let dbQueue = try makeDatabaseQueue()
220223
try dbQueue.inDatabase { db in
221224
try db.create(table: "parents") { $0.column("id", .integer).primaryKey() }
@@ -229,5 +232,6 @@ class DatabaseErrorTests: GRDBTestCase {
229232
XCTAssertNotNil(error.localizedFailureReason)
230233
}
231234
}
235+
#endif
232236
}
233237
}

0 commit comments

Comments
 (0)