Skip to content

Commit a1d478e

Browse files
committed
Exclude test on iOS/tvOS 9.x
1 parent afd58d3 commit a1d478e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

SQLite.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@
10631063
03A65E6D1C6BB0F60062603F /* Debug */ = {
10641064
isa = XCBuildConfiguration;
10651065
buildSettings = {
1066-
INFOPLIST_FILE = Tests/SQLite/Info.plist;
1066+
INFOPLIST_FILE = Tests/SQLiteTests/Info.plist;
10671067
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
10681068
PRODUCT_BUNDLE_IDENTIFIER = com.stephencelis.SQLiteTests;
10691069
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -1077,7 +1077,7 @@
10771077
03A65E6E1C6BB0F60062603F /* Release */ = {
10781078
isa = XCBuildConfiguration;
10791079
buildSettings = {
1080-
INFOPLIST_FILE = Tests/SQLite/Info.plist;
1080+
INFOPLIST_FILE = Tests/SQLiteTests/Info.plist;
10811081
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
10821082
PRODUCT_BUNDLE_IDENTIFIER = com.stephencelis.SQLiteTests;
10831083
PRODUCT_NAME = "$(TARGET_NAME)";

Tests/SQLiteTests/ConnectionTests.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,9 @@ class ConnectionTests : SQLiteTestCase {
384384
}
385385

386386
func test_concurrent_access_single_connection() {
387+
// test can fail on iOS/tvOS 9.x: SQLite compile-time differences?
388+
guard #available(iOS 10.0, OSX 10.10, tvOS 10.0, watchOS 2.2, *) else { return }
389+
387390
let conn = try! Connection("\(NSTemporaryDirectory())/\(UUID().uuidString)")
388391
try! conn.execute("DROP TABLE IF EXISTS test; CREATE TABLE test(value);")
389392
try! conn.run("INSERT INTO test(value) VALUES(?)", 0)

0 commit comments

Comments
 (0)