mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-22 04:00:39 +00:00
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:
1 parent
389c3e0d4a
commit
d7cf0f9e59
1 file changed
+4
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user