Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitca5d201

Browse files
kateinoigakukunfjtrujy
authored andcommitted
PackageToJS: Increase stack size for Playwright onPageLoad tests
1 parent6b9abf4 commitca5d201

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

‎Plugins/PackageToJS/Tests/ExampleTests.swift‎

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,16 @@ extension Trait where Self == ConditionTrait {
232232
}
233233
}
234234

235+
/// FIXME: swift-testing uses too much stack space, so we need to increase the stack size for tests using swift-testing.
236+
staticvarstackSizeLinkerFlags:[String]{
237+
[
238+
"-Xlinker","--stack-first",
239+
"-Xlinker","-z",
240+
"-Xlinker","stack-size=524288",
241+
"-Xlinker","--global-base=524288",
242+
]
243+
}
244+
235245
@Test(.requireSwiftSDK)
236246
func basic()throws{
237247
letswiftSDKID=try #require(Self.getSwiftSDKID())
@@ -402,7 +412,12 @@ extension Trait where Self == ConditionTrait {
402412
at:"Plugins/PackageToJS/Fixtures/PlaywrightOnPageLoadTest/XCTest",
403413
assertTerminationStatus:{ $0==0}
404414
){ packageDir, _, runSwiftin
405-
tryrunSwift(["package","--disable-sandbox","--swift-sdk", swiftSDKID,"js","test"],[:])
415+
tryrunSwift(
416+
["package","--disable-sandbox"]+ Self.stackSizeLinkerFlags+[
417+
"--swift-sdk", swiftSDKID,"js","test"
418+
],
419+
[:]
420+
)
406421
}
407422
}
408423

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp