Skip to content

Commit 9ed7dee

Browse files
Fix test cases for WebAssembly Support
1 parent eead962 commit 9ed7dee

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Tests/BuildTests/BuildPlanTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2130,14 +2130,14 @@ final class BuildPlanTests: XCTestCase {
21302130
inputs: ["/path/to/build/debug/exe.swiftmodule"]
21312131
outputs: ["/path/to/build/debug/exe.build/exe.swiftmodule.o"]
21322132
description: "Wrapping AST for exe for debugging"
2133-
args: ["/fake/path/to/swiftc","-modulewrap","/path/to/build/debug/exe.swiftmodule","-o","/path/to/build/debug/exe.build/exe.swiftmodule.o"]
2133+
args: ["/fake/path/to/swiftc","-modulewrap","/path/to/build/debug/exe.swiftmodule","-o","/path/to/build/debug/exe.build/exe.swiftmodule.o","-target","x86_64-unknown-linux-gnu"]
21342134
21352135
"/path/to/build/debug/lib.build/lib.swiftmodule.o":
21362136
tool: shell
21372137
inputs: ["/path/to/build/debug/lib.swiftmodule"]
21382138
outputs: ["/path/to/build/debug/lib.build/lib.swiftmodule.o"]
21392139
description: "Wrapping AST for lib for debugging"
2140-
args: ["/fake/path/to/swiftc","-modulewrap","/path/to/build/debug/lib.swiftmodule","-o","/path/to/build/debug/lib.build/lib.swiftmodule.o"]
2140+
args: ["/fake/path/to/swiftc","-modulewrap","/path/to/build/debug/lib.swiftmodule","-o","/path/to/build/debug/lib.build/lib.swiftmodule.o","-target","x86_64-unknown-linux-gnu"]
21412141
"""))
21422142
}
21432143
}

Tests/PackageLoadingTests/PackageBuilderTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,6 +1524,7 @@ class PackageBuilderTests: XCTestCase {
15241524
"tvos": "9.0",
15251525
"watchos": "2.0",
15261526
"android": "0.0",
1527+
"wasi": "0.0",
15271528
]
15281529

15291530
PackageBuilderTester(manifest, in: fs) { package, _ in
@@ -1560,6 +1561,7 @@ class PackageBuilderTests: XCTestCase {
15601561
"ios": "8.0",
15611562
"watchos": "2.0",
15621563
"android": "0.0",
1564+
"wasi": "0.0",
15631565
]
15641566

15651567
PackageBuilderTester(manifest, in: fs) { package, _ in

0 commit comments

Comments
 (0)