Skip to content

Commit 93eb91b

Browse files
committed
Test fixes for Windows
1 parent 3c2e7a4 commit 93eb91b

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
schedule:
1010
- cron: '0 6,18 * * *'
1111
jobs:
12-
test:
12+
darwin+android:
1313
# emulator fails to launch on ARM macOS with: HVF error: HV_UNSUPPORTED
1414
#runs-on: macos-15
1515
# so we need to run on Intel macOS

Tests/SQLiteDBTests/Core/ConnectionTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ class ConnectionTests: SQLiteTestCase {
374374
}
375375

376376
// https://github.com/stephencelis/SQLite.swift/issues/1071
377-
#if !os(Linux) && !os(Android)
377+
#if !os(Linux) && !os(Android) && !os(Windows)
378378
func test_createFunction_withArrayArguments() throws {
379379
db.createFunction("hello") { $0[0].map { "Hello, \($0)!" } }
380380

Tests/SQLiteDBTests/Extensions/CipherTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class CipherTests: XCTestCase {
8585
fixture("encrypted-3.x", withExtension: "sqlite") :
8686
fixture("encrypted-4.x", withExtension: "sqlite")
8787

88-
#if !os(Android) // file permission modification unsupported on Android
88+
#if !os(Android) && !os(Linux) // file permission modification unsupported on Android
8989
try FileManager.default.setAttributes([FileAttributeKey.immutable: 1], ofItemAtPath: encryptedFile)
9090
XCTAssertFalse(FileManager.default.isWritableFile(atPath: encryptedFile))
9191
#endif

Tests/SQLiteDBTests/Schema/SchemaDefinitionsTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ColumnDefinitionTests: XCTestCase {
3232
defaultValue: .numericLiteral("123.123"), references: nil))
3333
]
3434

35-
#if !os(Linux) && !os(Android)
35+
#if !os(Linux) && !os(Android) && !os(Windows)
3636
override class var defaultTestSuite: XCTestSuite {
3737
let suite = XCTestSuite(forTestCaseClass: ColumnDefinitionTests.self)
3838

@@ -183,7 +183,7 @@ class IndexDefinitionTests: XCTestCase {
183183
"CREATE INDEX IF NOT EXISTS \"index_tests\" ON \"tests\" (\"test_column\")")
184184
]
185185

186-
#if !os(Linux) && !os(Android)
186+
#if !os(Linux) && !os(Android) && !os(Windows)
187187
override class var defaultTestSuite: XCTestSuite {
188188
let suite = XCTestSuite(forTestCaseClass: IndexDefinitionTests.self)
189189

Tests/SQLiteDBTests/Typed/CustomAggregationTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import SQLite3
1414
#endif
1515

1616
// https://github.com/stephencelis/SQLite.swift/issues/1071
17-
#if !os(Linux) && !os(Android)
17+
#if !os(Linux) && !os(Android) && !os(Windows)
1818

1919
class CustomAggregationTests: SQLiteTestCase {
2020
override func setUpWithError() throws {

Tests/SQLiteDBTests/Typed/CustomFunctionsTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import XCTest
22
import SQLiteDB
33

44
// https://github.com/stephencelis/SQLite.swift/issues/1071
5-
#if !os(Linux) && !os(Android)
5+
#if !os(Linux) && !os(Android) && !os(Windows)
66

77
class CustomFunctionNoArgsTests: SQLiteTestCase {
88
typealias FunctionNoOptional = () -> Expression<String>

Tests/SQLiteDBTests/Typed/QueryTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ class QueryTests: XCTestCase {
354354
)
355355
}
356356

357-
#if !os(Linux) && !os(Android) // depends on exact JSON serialization
357+
#if !os(Linux) && !os(Android) && !os(Windows) // depends on exact JSON serialization
358358
func test_insert_encodable_with_nested_encodable() throws {
359359
let emails = Table("emails")
360360
let value1 = TestCodable(int: 1, string: "2", bool: true, float: 3, double: 4,

0 commit comments

Comments
 (0)