Skip to content

Commit

Permalink
Test fixes for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
marcprux committed Nov 30, 2024
1 parent 3c2e7a4 commit 93eb91b
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
schedule:
- cron: '0 6,18 * * *'
jobs:
test:
darwin+android:
# emulator fails to launch on ARM macOS with: HVF error: HV_UNSUPPORTED
#runs-on: macos-15
# so we need to run on Intel macOS
Expand Down
2 changes: 1 addition & 1 deletion Tests/SQLiteDBTests/Core/ConnectionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ class ConnectionTests: SQLiteTestCase {
}

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

Expand Down
2 changes: 1 addition & 1 deletion Tests/SQLiteDBTests/Extensions/CipherTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class CipherTests: XCTestCase {
fixture("encrypted-3.x", withExtension: "sqlite") :
fixture("encrypted-4.x", withExtension: "sqlite")

#if !os(Android) // file permission modification unsupported on Android
#if !os(Android) && !os(Linux) // file permission modification unsupported on Android
try FileManager.default.setAttributes([FileAttributeKey.immutable: 1], ofItemAtPath: encryptedFile)
XCTAssertFalse(FileManager.default.isWritableFile(atPath: encryptedFile))
#endif
Expand Down
4 changes: 2 additions & 2 deletions Tests/SQLiteDBTests/Schema/SchemaDefinitionsTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ColumnDefinitionTests: XCTestCase {
defaultValue: .numericLiteral("123.123"), references: nil))
]

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

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

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

Expand Down
2 changes: 1 addition & 1 deletion Tests/SQLiteDBTests/Typed/CustomAggregationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import SQLite3
#endif

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

class CustomAggregationTests: SQLiteTestCase {
override func setUpWithError() throws {
Expand Down
2 changes: 1 addition & 1 deletion Tests/SQLiteDBTests/Typed/CustomFunctionsTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import XCTest
import SQLiteDB

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

class CustomFunctionNoArgsTests: SQLiteTestCase {
typealias FunctionNoOptional = () -> Expression<String>
Expand Down
2 changes: 1 addition & 1 deletion Tests/SQLiteDBTests/Typed/QueryTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ class QueryTests: XCTestCase {
)
}

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

0 comments on commit 93eb91b

Please sign in to comment.