This commit is contained in:
zeus
2025-01-28 12:28:03 +08:00
parent 738c373a77
commit ec96756800
2534 changed files with 486292 additions and 0 deletions
@@ -0,0 +1,22 @@
import XCTest
@testable import GRDB
class DatabaseLogErrorTests: GRDBTestCase {
func testErrorLog() throws {
// TODO: restore flaky test
throw XCTSkip("Flaky")
// // TODO: understand why this test fails on iOS 13 with system SQLite
// #if GRDBCUSTOMSQLITE || SQLITE_HAS_CODEC
// let dbQueue = try makeDatabaseQueue()
// dbQueue.inDatabase { db in
// _ = try? db.execute(sql: "Abracadabra")
// }
// XCTAssertEqual(lastResultCode!, ResultCode.SQLITE_ERROR)
// // Don't check for exact error message because it depends on SQLite version
// XCTAssert(lastMessage!.contains("syntax error"))
// XCTAssert(lastMessage!.contains("Abracadabra"))
// #endif
}
}