Skip to content

Commit

Permalink
Swift test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone committed Jan 24, 2025
1 parent 7a84154 commit 446ce10
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ jobs:
# iOS
- os: macos-15
config: "ios"
build_flags: "PLATFORMS='macosx iphonesimulator' LANGUAGES='cpp swift' CONFIGS='static'"
test_flags: "--platform=iphonesimulator --controller-app --rfilter=swift/Ice/operations" # Remove rfilter once #3286 is fixed
build_flags: "PLATFORMS='macosx iphonesimulator' CONFIGS='static shared' LANGUAGES='cpp swift'"
test_flags: "--languages='cpp,swift' --platform=iphonesimulator --controller-app --rfilter=swift/Ice/operations" # Remove rfilter once #3286 is fixed
build_cpp_and_python: true

# Static builds
Expand Down
2 changes: 1 addition & 1 deletion swift/test/Ice/udp/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Client: TestHelperI {
}
try await allTests(self)

let num = restArgs.count == 4 ? Int(restArgs[3]) : 1
let num = restArgs.count == 1 ? Int(restArgs[0]) : 1
for i in 0..<(num ?? 1) {
let prx = try communicator.stringToProxy(
"control:\(getTestEndpoint(num: Int32(i), prot: "tcp"))")!
Expand Down
2 changes: 1 addition & 1 deletion swift/test/Ice/udp/Server.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Server: TestHelperI {
defer {
communicator.destroy()
}
let num = restArgs.count == 4 ? Int32(restArgs[3]) : 1
let num = restArgs.count == 1 ? Int32(restArgs[0]) : 0
communicator.getProperties().setProperty(
key: "ControlAdapter.Endpoints",
value: getTestEndpoint(num: num ?? 0, prot: "tcp"))
Expand Down
2 changes: 1 addition & 1 deletion swift/test/TestDriver/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ do {
let testName = "\(testPath).\(exe)"

let testHelper = TestBundle.getTestHelper(name: testName)
try await testHelper.run(args: args)
try await testHelper.run(args: Array(args[3...]))

} catch {
for s in Thread.callStackSymbols {
Expand Down

0 comments on commit 446ce10

Please sign in to comment.