Skip to content

Commit

Permalink
Exclude test on iOS/tvOS 9.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jberkel committed Apr 13, 2018
1 parent afd58d3 commit a1d478e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SQLite.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@
03A65E6D1C6BB0F60062603F /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
INFOPLIST_FILE = Tests/SQLite/Info.plist;
INFOPLIST_FILE = Tests/SQLiteTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.stephencelis.SQLiteTests;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -1077,7 +1077,7 @@
03A65E6E1C6BB0F60062603F /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
INFOPLIST_FILE = Tests/SQLite/Info.plist;
INFOPLIST_FILE = Tests/SQLiteTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.stephencelis.SQLiteTests;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
3 changes: 3 additions & 0 deletions Tests/SQLiteTests/ConnectionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,9 @@ class ConnectionTests : SQLiteTestCase {
}

func test_concurrent_access_single_connection() {
// test can fail on iOS/tvOS 9.x: SQLite compile-time differences?
guard #available(iOS 10.0, OSX 10.10, tvOS 10.0, watchOS 2.2, *) else { return }

let conn = try! Connection("\(NSTemporaryDirectory())/\(UUID().uuidString)")
try! conn.execute("DROP TABLE IF EXISTS test; CREATE TABLE test(value);")
try! conn.run("INSERT INTO test(value) VALUES(?)", 0)
Expand Down

0 comments on commit a1d478e

Please sign in to comment.