Skip to content

Commit 6ae5b6c

Browse files
committed
Fix testWASITarget to work w/ .wasm binaries ext
1 parent 8dab8a2 commit 6ae5b6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/BuildTests/BuildPlanTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1689,15 +1689,15 @@ final class BuildPlanTests: XCTestCase {
16891689
try result.buildProduct(for: "app").linkArguments(),
16901690
[
16911691
"/fake/path/to/swiftc", "-L", "/path/to/build/debug",
1692-
"-o", "/path/to/build/debug/app",
1692+
"-o", "/path/to/build/debug/app.wasm",
16931693
"-module-name", "app", "-static-stdlib", "-emit-executable",
16941694
"@/path/to/build/debug/app.product/Objects.LinkFileList",
16951695
"-target", "wasm32-unknown-wasi"
16961696
]
16971697
)
16981698

16991699
let executablePathExtension = try result.buildProduct(for: "app").binary.extension
1700-
XCTAssertEqual(executablePathExtension, nil)
1700+
XCTAssertEqual(executablePathExtension, "wasm")
17011701
}
17021702

17031703
func testIndexStore() throws {

0 commit comments

Comments
 (0)