From 97e00ab44fadeb49c6d5da83c4313826b459b5db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Wed, 8 Dec 2021 13:17:58 +0100 Subject: [PATCH] Fix async test for SQLCipher VACUUM INTO --- Tests/GRDBTests/DatabaseWriterTests.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Tests/GRDBTests/DatabaseWriterTests.swift b/Tests/GRDBTests/DatabaseWriterTests.swift index e3b4afd00..3d0bbfe16 100644 --- a/Tests/GRDBTests/DatabaseWriterTests.swift +++ b/Tests/GRDBTests/DatabaseWriterTests.swift @@ -377,8 +377,13 @@ class DatabaseWriterTests : GRDBTestCase { #endif #if compiler(>=5.5.2) && canImport(_Concurrency) - @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) + @available(macOS 10.16, iOS 14, tvOS 14, watchOS 7, *) // async + vacuum into func testAsyncAwait_vacuumInto() async throws { + // Prevent SQLCipher failures + guard sqlite3_libversion_number() >= 3027000 else { + throw XCTSkip("VACUUM INTO is not available") + } + func setup(_ dbWriter: T) throws -> T { try dbWriter.write { db in try db.execute(sql: "CREATE TABLE t (id INTEGER PRIMARY KEY)")