Skip to content

Commit 0ff5690

Browse files
authored
Merge pull request swiftlang#238 from swiftwasm/main
[pull] swiftwasm from main
2 parents 3f1c56b + 91daa21 commit 0ff5690

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

DarwinCompatibilityTests.xcodeproj/xcshareddata/xcschemes/xdgTestHelper.xcscheme

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@
5959
<Test
6060
Identifier = "TestURLRequest/test_hash()">
6161
</Test>
62-
<Test
63-
Identifier = "TestURLSession">
64-
</Test>
6562
<Test
6663
Identifier = "TestXMLDocument/test_creatingAnEmptyDocumentAndNode()">
6764
</Test>

Tests/Foundation/Tests/TestNSString.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,8 @@ class TestNSString: LoopbackServerTest {
814814
}
815815

816816
func test_initializeWithFormat4() {
817-
let argument: [CVarArg] = ["One", "Two", "Three"]
817+
// The NSString() is required on macOS to work around error: `Type of expression is ambiguous without more context`
818+
let argument: [CVarArg] = [NSString("One"), NSString("Two"), NSString("Three")]
818819
withVaList(argument) {
819820
pointer in
820821
let string = NSString(format: "Testing %@ %@ %@", arguments: pointer)

Tests/Foundation/Tests/TestURLSession.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1794,15 +1794,15 @@ class TestURLSession: LoopbackServerTest {
17941794
("test_httpRedirectionChainInheritsTimeoutInterval", test_httpRedirectionChainInheritsTimeoutInterval),
17951795
("test_httpRedirectionExceededMaxRedirects", test_httpRedirectionExceededMaxRedirects),
17961796
("test_httpNotFound", test_httpNotFound),
1797-
("test_http0_9SimpleResponses", test_http0_9SimpleResponses),
1797+
/* ⚠️ */ ("test_http0_9SimpleResponses", testExpectedToFail(test_http0_9SimpleResponses, "Breaks on Ubunut20.04")),
17981798
("test_outOfRangeButCorrectlyFormattedHTTPCode", test_outOfRangeButCorrectlyFormattedHTTPCode),
17991799
("test_missingContentLengthButStillABody", test_missingContentLengthButStillABody),
18001800
("test_illegalHTTPServerResponses", test_illegalHTTPServerResponses),
18011801
("test_dataTaskWithSharedDelegate", test_dataTaskWithSharedDelegate),
18021802
("test_simpleUploadWithDelegate", test_simpleUploadWithDelegate),
18031803
("test_requestWithEmptyBody", test_requestWithEmptyBody),
18041804
("test_requestWithNonEmptyBody", test_requestWithNonEmptyBody),
1805-
("test_concurrentRequests", test_concurrentRequests),
1805+
/* ⚠️ */ ("test_concurrentRequests", testExpectedToFail(test_concurrentRequests, "Fails about 4% of the time")),
18061806
("test_disableCookiesStorage", test_disableCookiesStorage),
18071807
("test_cookiesStorage", test_cookiesStorage),
18081808
("test_cookieStorageForEphemeralConfiguration", test_cookieStorageForEphemeralConfiguration),
@@ -1816,15 +1816,15 @@ class TestURLSession: LoopbackServerTest {
18161816
("test_checkErrorTypeAfterInvalidateAndCancel", test_checkErrorTypeAfterInvalidateAndCancel),
18171817
("test_taskCountAfterInvalidateAndCancel", test_taskCountAfterInvalidateAndCancel),
18181818
("test_sessionDelegateAfterInvalidateAndCancel", test_sessionDelegateAfterInvalidateAndCancel),
1819-
("test_getAllTasks", test_getAllTasks),
1819+
/* ⚠️ */ ("test_getAllTasks", testExpectedToFail(test_getAllTasks, "This test causes later ones to crash")),
18201820
("test_getTasksWithCompletion", test_getTasksWithCompletion),
18211821
/* ⚠️ */ ("test_invalidResumeDataForDownloadTask",
18221822
/* ⚠️ */ testExpectedToFail(test_invalidResumeDataForDownloadTask, "This test crashes nondeterministically: https://bugs.swift.org/browse/SR-11353")),
18231823
/* ⚠️ */ ("test_simpleUploadWithDelegateProvidingInputStream",
18241824
/* ⚠️ */ testExpectedToFail(test_simpleUploadWithDelegateProvidingInputStream, "This test times out frequently: https://bugs.swift.org/browse/SR-11343")),
18251825
/* ⚠️ */ ("test_noDoubleCallbackWhenCancellingAndProtocolFailsFast",
18261826
/* ⚠️ */ testExpectedToFail(test_noDoubleCallbackWhenCancellingAndProtocolFailsFast, "This test crashes nondeterministically: https://bugs.swift.org/browse/SR-11310")),
1827-
("test_cancelledTasksCannotBeResumed", test_cancelledTasksCannotBeResumed),
1827+
/* ⚠️ */ ("test_cancelledTasksCannotBeResumed", testExpectedToFail(test_cancelledTasksCannotBeResumed, "Breaks on Ubuntu 18.04")),
18281828
]
18291829
}
18301830

Tests/Foundation/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ var allTestCases = [
9898
testCase(TestURLRequest.allTests),
9999
testCase(TestURLResponse.allTests),
100100
testCase(TestHTTPURLResponse.allTests),
101-
testCaseExpectedToFail(TestURLSession.allTests, "URLSession test interdependencies are causing intermittent CI issues."),
102101
testCase(TestNSUUID.allTests),
103102
testCase(TestUUID.allTests),
104103
testCase(TestNSValue.allTests),
@@ -127,6 +126,7 @@ var allTestCases = [
127126

128127
#if !os(Windows)
129128
allTestCases.append(contentsOf: [
129+
testCase(TestURLSession.allTests),
130130
testCase(TestURLSessionFTP.allTests),
131131
])
132132
#endif

0 commit comments

Comments
 (0)