@@ -16,15 +16,15 @@ import CoreFoundation
16
16
// CHECK: Test Suite 'ExpectationsTestCase' started at \d+-\d+-\d+ \d+:\d+:\d+\.\d+
17
17
class ExpectationsTestCase : XCTestCase {
18
18
// CHECK: Test Case 'ExpectationsTestCase.test_waitingForAnUnfulfilledExpectation_fails' started at \d+-\d+-\d+ \d+:\d+:\d+\.\d+
19
- // CHECK: .*/ Tests/ Functional/ Asynchronous/ Expectations/ main.swift:[[@LINE+4]]: error: ExpectationsTestCase.test_waitingForAnUnfulfilledExpectation_fails : Asynchronous wait failed - Exceeded timeout of 0.2 seconds, with unfulfilled expectations: foo
19
+ // CHECK: .*[/\\] Tests[/\\] Functional[/\\] Asynchronous[/\\] Expectations[/\\] main.swift:[[@LINE+4]]: error: ExpectationsTestCase.test_waitingForAnUnfulfilledExpectation_fails : Asynchronous wait failed - Exceeded timeout of 0.2 seconds, with unfulfilled expectations: foo
20
20
// CHECK: Test Case 'ExpectationsTestCase.test_waitingForAnUnfulfilledExpectation_fails' failed \(\d+\.\d+ seconds\)
21
21
func test_waitingForAnUnfulfilledExpectation_fails( ) {
22
22
expectation ( description: " foo " )
23
23
waitForExpectations ( timeout: 0.2 )
24
24
}
25
25
26
26
// CHECK: Test Case 'ExpectationsTestCase.test_waitingForUnfulfilledExpectations_outputsAllExpectations_andFails' started at \d+-\d+-\d+ \d+:\d+:\d+\.\d+
27
- // CHECK: .*/ Tests/ Functional/ Asynchronous/ Expectations/ main.swift:[[@LINE+5]]: error: ExpectationsTestCase.test_waitingForUnfulfilledExpectations_outputsAllExpectations_andFails : Asynchronous wait failed - Exceeded timeout of 0.2 seconds, with unfulfilled expectations: bar, baz
27
+ // CHECK: .*[/\\] Tests[/\\] Functional[/\\] Asynchronous[/\\] Expectations[/\\] main.swift:[[@LINE+5]]: error: ExpectationsTestCase.test_waitingForUnfulfilledExpectations_outputsAllExpectations_andFails : Asynchronous wait failed - Exceeded timeout of 0.2 seconds, with unfulfilled expectations: bar, baz
28
28
// CHECK: Test Case 'ExpectationsTestCase.test_waitingForUnfulfilledExpectations_outputsAllExpectations_andFails' failed \(\d+\.\d+ seconds\)
29
29
func test_waitingForUnfulfilledExpectations_outputsAllExpectations_andFails( ) {
30
30
expectation ( description: " bar " )
@@ -52,7 +52,7 @@ class ExpectationsTestCase: XCTestCase {
52
52
}
53
53
54
54
// CHECK: Test Case 'ExpectationsTestCase.test_waitingForAnExpectationFulfilledAfterTheTimeout_fails' started at \d+-\d+-\d+ \d+:\d+:\d+\.\d+
55
- // CHECK: .*/ Tests/ Functional/ Asynchronous/ Expectations/ main.swift:[[@LINE+8]]: error: ExpectationsTestCase.test_waitingForAnExpectationFulfilledAfterTheTimeout_fails : Asynchronous wait failed - Exceeded timeout of 0.1 seconds, with unfulfilled expectations: hog
55
+ // CHECK: .*[/\\] Tests[/\\] Functional[/\\] Asynchronous[/\\] Expectations[/\\] main.swift:[[@LINE+8]]: error: ExpectationsTestCase.test_waitingForAnExpectationFulfilledAfterTheTimeout_fails : Asynchronous wait failed - Exceeded timeout of 0.1 seconds, with unfulfilled expectations: hog
56
56
// CHECK: Test Case 'ExpectationsTestCase.test_waitingForAnExpectationFulfilledAfterTheTimeout_fails' failed \(\d+\.\d+ seconds\)
57
57
func test_waitingForAnExpectationFulfilledAfterTheTimeout_fails( ) {
58
58
let expectation = self . expectation ( description: " hog " )
@@ -72,7 +72,7 @@ class ExpectationsTestCase: XCTestCase {
72
72
}
73
73
74
74
// CHECK: Test Case 'ExpectationsTestCase.test_whenTimeoutIsImmediate_butNotAllExpectationsAreFulfilled_fails' started at \d+-\d+-\d+ \d+:\d+:\d+\.\d+
75
- // CHECK: .*/ Tests/ Functional/ Asynchronous/ Expectations/ main.swift:[[@LINE+4]]: error: ExpectationsTestCase.test_whenTimeoutIsImmediate_butNotAllExpectationsAreFulfilled_fails : Asynchronous wait failed - Exceeded timeout of -1.0 seconds, with unfulfilled expectations: dog
75
+ // CHECK: .*[/\\] Tests[/\\] Functional[/\\] Asynchronous[/\\] Expectations[/\\] main.swift:[[@LINE+4]]: error: ExpectationsTestCase.test_whenTimeoutIsImmediate_butNotAllExpectationsAreFulfilled_fails : Asynchronous wait failed - Exceeded timeout of -1.0 seconds, with unfulfilled expectations: dog
76
76
// CHECK: Test Case 'ExpectationsTestCase.test_whenTimeoutIsImmediate_butNotAllExpectationsAreFulfilled_fails' failed \(\d+\.\d+ seconds\)
77
77
func test_whenTimeoutIsImmediate_butNotAllExpectationsAreFulfilled_fails( ) {
78
78
expectation ( description: " dog " )
@@ -120,7 +120,7 @@ class ExpectationsTestCase: XCTestCase {
120
120
}
121
121
122
122
// CHECK: Test Case 'ExpectationsTestCase.test_multipleExpectationsEnforceOrderingIncorrect' started at \d+-\d+-\d+ \d+:\d+:\d+\.\d+
123
- // CHECK: .*/ Tests/ Functional/ Asynchronous/ Expectations/ main.swift:[[@LINE+6]]: error: ExpectationsTestCase.test_multipleExpectationsEnforceOrderingIncorrect : Failed due to expectation fulfilled in incorrect order: requires 'foo', actually fulfilled 'bar'
123
+ // CHECK: .*[/\\] Tests[/\\] Functional[/\\] Asynchronous[/\\] Expectations[/\\] main.swift:[[@LINE+6]]: error: ExpectationsTestCase.test_multipleExpectationsEnforceOrderingIncorrect : Failed due to expectation fulfilled in incorrect order: requires 'foo', actually fulfilled 'bar'
124
124
// CHECK: Test Case 'ExpectationsTestCase.test_multipleExpectationsEnforceOrderingIncorrect' failed \(\d+\.\d+ seconds\)
125
125
func test_multipleExpectationsEnforceOrderingIncorrect( ) {
126
126
let foo = expectation ( description: " foo " )
@@ -133,7 +133,7 @@ class ExpectationsTestCase: XCTestCase {
133
133
}
134
134
135
135
// CHECK: Test Case 'ExpectationsTestCase.test_multipleExpectationsIncludingInvertedEnforceOrderingIncorrect' started at \d+-\d+-\d+ \d+:\d+:\d+\.\d+
136
- // CHECK: .*/ Tests/ Functional/ Asynchronous/ Expectations/ main.swift:[[@LINE+8]]: error: ExpectationsTestCase.test_multipleExpectationsIncludingInvertedEnforceOrderingIncorrect : Failed due to expectation fulfilled in incorrect order: requires 'foo', actually fulfilled 'bar'
136
+ // CHECK: .*[/\\] Tests[/\\] Functional[/\\] Asynchronous[/\\] Expectations[/\\] main.swift:[[@LINE+8]]: error: ExpectationsTestCase.test_multipleExpectationsIncludingInvertedEnforceOrderingIncorrect : Failed due to expectation fulfilled in incorrect order: requires 'foo', actually fulfilled 'bar'
137
137
// CHECK: Test Case 'ExpectationsTestCase.test_multipleExpectationsIncludingInvertedEnforceOrderingIncorrect' failed \(\d+\.\d+ seconds\)
138
138
func test_multipleExpectationsIncludingInvertedEnforceOrderingIncorrect( ) {
139
139
let inverted = expectation ( description: " inverted " )
@@ -148,7 +148,7 @@ class ExpectationsTestCase: XCTestCase {
148
148
}
149
149
150
150
// CHECK: Test Case 'ExpectationsTestCase.test_multipleExpectationsEnforceOrderingIncorrectBeforeWait' started at \d+-\d+-\d+ \d+:\d+:\d+\.\d+
151
- // CHECK: .*/ Tests/ Functional/ Asynchronous/ Expectations/ main.swift:[[@LINE+5]]: error: ExpectationsTestCase.test_multipleExpectationsEnforceOrderingIncorrectBeforeWait : Failed due to expectation fulfilled in incorrect order: requires 'foo', actually fulfilled 'bar'
151
+ // CHECK: .*[/\\] Tests[/\\] Functional[/\\] Asynchronous[/\\] Expectations[/\\] main.swift:[[@LINE+5]]: error: ExpectationsTestCase.test_multipleExpectationsEnforceOrderingIncorrectBeforeWait : Failed due to expectation fulfilled in incorrect order: requires 'foo', actually fulfilled 'bar'
152
152
// CHECK: Test Case 'ExpectationsTestCase.test_multipleExpectationsEnforceOrderingIncorrectBeforeWait' failed \(\d+\.\d+ seconds\)
153
153
func test_multipleExpectationsEnforceOrderingIncorrectBeforeWait( ) {
154
154
let foo = expectation ( description: " foo " )
@@ -185,7 +185,7 @@ class ExpectationsTestCase: XCTestCase {
185
185
}
186
186
187
187
// CHECK: Test Case 'ExpectationsTestCase.test_inverseExpectationFail' started at \d+-\d+-\d+ \d+:\d+:\d+\.\d+
188
- // CHECK: .*/ Tests/ Functional/ Asynchronous/ Expectations/ main.swift:[[@LINE+6]]: error: ExpectationsTestCase.test_inverseExpectationFail : Asynchronous wait failed - Fulfilled inverted expectation 'foo'
188
+ // CHECK: .*[/\\] Tests[/\\] Functional[/\\] Asynchronous[/\\] Expectations[/\\] main.swift:[[@LINE+6]]: error: ExpectationsTestCase.test_inverseExpectationFail : Asynchronous wait failed - Fulfilled inverted expectation 'foo'
189
189
// CHECK: Test Case 'ExpectationsTestCase.test_inverseExpectationFail' failed \(\d+\.\d+ seconds\)
190
190
func test_inverseExpectationFail( ) {
191
191
let foo = expectation ( description: " foo " )
@@ -197,7 +197,7 @@ class ExpectationsTestCase: XCTestCase {
197
197
}
198
198
199
199
// CHECK: Test Case 'ExpectationsTestCase.test_inverseExpectationFulfilledBeforeWait' started at \d+-\d+-\d+ \d+:\d+:\d+\.\d+
200
- // CHECK: .*/ Tests/ Functional/ Asynchronous/ Expectations/ main.swift:[[@LINE+5]]: error: ExpectationsTestCase.test_inverseExpectationFulfilledBeforeWait : Asynchronous wait failed - Fulfilled inverted expectation 'foo'
200
+ // CHECK: .*[/\\] Tests[/\\] Functional[/\\] Asynchronous[/\\] Expectations[/\\] main.swift:[[@LINE+5]]: error: ExpectationsTestCase.test_inverseExpectationFulfilledBeforeWait : Asynchronous wait failed - Fulfilled inverted expectation 'foo'
201
201
// CHECK: Test Case 'ExpectationsTestCase.test_inverseExpectationFulfilledBeforeWait' failed \(\d+\.\d+ seconds\)
202
202
func test_inverseExpectationFulfilledBeforeWait( ) {
203
203
let foo = expectation ( description: " foo " )
@@ -224,7 +224,7 @@ class ExpectationsTestCase: XCTestCase {
224
224
}
225
225
226
226
// CHECK: Test Case 'ExpectationsTestCase.test_combiningInverseAndStandardExpectationsFailWithTimeout' started at \d+-\d+-\d+ \d+:\d+:\d+\.\d+
227
- // CHECK: .*/ Tests/ Functional/ Asynchronous/ Expectations/ main.swift:[[@LINE+8]]: error: ExpectationsTestCase.test_combiningInverseAndStandardExpectationsFailWithTimeout : Asynchronous wait failed - Exceeded timeout of 0.5 seconds, with unfulfilled expectations: bar
227
+ // CHECK: .*[/\\] Tests[/\\] Functional[/\\] Asynchronous[/\\] Expectations[/\\] main.swift:[[@LINE+8]]: error: ExpectationsTestCase.test_combiningInverseAndStandardExpectationsFailWithTimeout : Asynchronous wait failed - Exceeded timeout of 0.5 seconds, with unfulfilled expectations: bar
228
228
// CHECK: Test Case 'ExpectationsTestCase.test_combiningInverseAndStandardExpectationsFailWithTimeout' failed \(\d+\.\d+ seconds\)
229
229
func test_combiningInverseAndStandardExpectationsFailWithTimeout( ) {
230
230
let foo = expectation ( description: " foo " )
@@ -239,7 +239,7 @@ class ExpectationsTestCase: XCTestCase {
239
239
}
240
240
241
241
// CHECK: Test Case 'ExpectationsTestCase.test_combiningInverseAndStandardExpectationsFailWithInverseFulfillment' started at \d+-\d+-\d+ \d+:\d+:\d+\.\d+
242
- // CHECK: .*/ Tests/ Functional/ Asynchronous/ Expectations/ main.swift:[[@LINE+8]]: error: ExpectationsTestCase.test_combiningInverseAndStandardExpectationsFailWithInverseFulfillment : Asynchronous wait failed - Fulfilled inverted expectation 'foo'
242
+ // CHECK: .*[/\\] Tests[/\\] Functional[/\\] Asynchronous[/\\] Expectations[/\\] main.swift:[[@LINE+8]]: error: ExpectationsTestCase.test_combiningInverseAndStandardExpectationsFailWithInverseFulfillment : Asynchronous wait failed - Fulfilled inverted expectation 'foo'
243
243
// CHECK: Test Case 'ExpectationsTestCase.test_combiningInverseAndStandardExpectationsFailWithInverseFulfillment' failed \(\d+\.\d+ seconds\)
244
244
func test_combiningInverseAndStandardExpectationsFailWithInverseFulfillment( ) {
245
245
let foo = expectation ( description: " foo " )
@@ -327,7 +327,7 @@ class ExpectationsTestCase: XCTestCase {
327
327
}
328
328
329
329
// CHECK: Test Case 'ExpectationsTestCase.test_countedConditionFail' started at \d+-\d+-\d+ \d+:\d+:\d+\.\d+
330
- // CHECK: .*/ Tests/ Functional/ Asynchronous/ Expectations/ main.swift:[[@LINE+8]]: error: ExpectationsTestCase.test_countedConditionFail : Asynchronous wait failed - Exceeded timeout of 0.2 seconds, with unfulfilled expectations: foo
330
+ // CHECK: .*[/\\] Tests[/\\] Functional[/\\] Asynchronous[/\\] Expectations[/\\] main.swift:[[@LINE+8]]: error: ExpectationsTestCase.test_countedConditionFail : Asynchronous wait failed - Exceeded timeout of 0.2 seconds, with unfulfilled expectations: foo
331
331
// CHECK: Test Case 'ExpectationsTestCase.test_countedConditionFail' failed \(\d+\.\d+ seconds\)
332
332
func test_countedConditionFail( ) {
333
333
let foo = expectation ( description: " foo " )
@@ -341,9 +341,9 @@ class ExpectationsTestCase: XCTestCase {
341
341
// PRAGMA MARK: - Interrupted Waiters
342
342
343
343
// CHECK: Test Case 'ExpectationsTestCase.test_outerWaiterTimesOut_InnerWaitersAreInterrupted' started at \d+-\d+-\d+ \d+:\d+:\d+\.\d+
344
- // CHECK: .*/ Tests/ Functional/ Asynchronous/ Expectations/ main.swift:[[@LINE+22]]: error: ExpectationsTestCase.test_outerWaiterTimesOut_InnerWaitersAreInterrupted : Asynchronous wait failed - Exceeded timeout of 0.1 seconds, with unfulfilled expectations: outer
345
- // CHECK: .*/ Tests/ Functional/ Asynchronous/ Expectations/ main.swift:[[@LINE+11]]: error: ExpectationsTestCase.test_outerWaiterTimesOut_InnerWaitersAreInterrupted : Asynchronous waiter <XCTWaiter expectations: 'inner-1'> failed - Interrupted by timeout of containing waiter <XCTWaiter expectations: 'outer'>
346
- // CHECK: .*/ Tests/ Functional/ Asynchronous/ Expectations/ main.swift:[[@LINE+15]]: error: ExpectationsTestCase.test_outerWaiterTimesOut_InnerWaitersAreInterrupted : Asynchronous waiter <XCTWaiter expectations: 'inner-2'> failed - Interrupted by timeout of containing waiter <XCTWaiter expectations: 'outer'>
344
+ // CHECK: .*[/\\] Tests[/\\] Functional[/\\] Asynchronous[/\\] Expectations[/\\] main.swift:[[@LINE+22]]: error: ExpectationsTestCase.test_outerWaiterTimesOut_InnerWaitersAreInterrupted : Asynchronous wait failed - Exceeded timeout of 0.1 seconds, with unfulfilled expectations: outer
345
+ // CHECK: .*[/\\] Tests[/\\] Functional[/\\] Asynchronous[/\\] Expectations[/\\] main.swift:[[@LINE+11]]: error: ExpectationsTestCase.test_outerWaiterTimesOut_InnerWaitersAreInterrupted : Asynchronous waiter <XCTWaiter expectations: 'inner-1'> failed - Interrupted by timeout of containing waiter <XCTWaiter expectations: 'outer'>
346
+ // CHECK: .*[/\\] Tests[/\\] Functional[/\\] Asynchronous[/\\] Expectations[/\\] main.swift:[[@LINE+15]]: error: ExpectationsTestCase.test_outerWaiterTimesOut_InnerWaitersAreInterrupted : Asynchronous waiter <XCTWaiter expectations: 'inner-2'> failed - Interrupted by timeout of containing waiter <XCTWaiter expectations: 'outer'>
347
347
// CHECK: Test Case 'ExpectationsTestCase.test_outerWaiterTimesOut_InnerWaitersAreInterrupted' failed \(\d+\.\d+ seconds\)
348
348
func test_outerWaiterTimesOut_InnerWaitersAreInterrupted( ) {
349
349
let outerWaiter = XCTWaiter ( delegate: self )
@@ -374,7 +374,7 @@ class ExpectationsTestCase: XCTestCase {
374
374
}
375
375
376
376
// CHECK: Test Case 'ExpectationsTestCase.test_outerWaiterCompletes_InnerWaiterTimesOut' started at \d+-\d+-\d+ \d+:\d+:\d+\.\d+
377
- // CHECK: .*/ Tests/ Functional/ Asynchronous/ Expectations/ main.swift:[[@LINE+14]]: error: ExpectationsTestCase.test_outerWaiterCompletes_InnerWaiterTimesOut : Asynchronous wait failed - Exceeded timeout of 1.0 seconds, with unfulfilled expectations: inner
377
+ // CHECK: .*[/\\] Tests[/\\] Functional[/\\] Asynchronous[/\\] Expectations[/\\] main.swift:[[@LINE+14]]: error: ExpectationsTestCase.test_outerWaiterCompletes_InnerWaiterTimesOut : Asynchronous wait failed - Exceeded timeout of 1.0 seconds, with unfulfilled expectations: inner
378
378
// CHECK: Test Case 'ExpectationsTestCase.test_outerWaiterCompletes_InnerWaiterTimesOut' failed \(\d+\.\d+ seconds\)
379
379
func test_outerWaiterCompletes_InnerWaiterTimesOut( ) {
380
380
let outerWaiter = XCTWaiter ( delegate: self )
@@ -447,7 +447,7 @@ class ExpectationsTestCase: XCTestCase {
447
447
}
448
448
449
449
// CHECK: Test Case 'ExpectationsTestCase.test_runLoopInsideDispatch' started at \d+-\d+-\d+ \d+:\d+:\d+\.\d+
450
- // CHECK: .*/ Tests/ Functional/ Asynchronous/ Expectations/ main.swift:[[@LINE+8]]: error: ExpectationsTestCase.test_runLoopInsideDispatch : Asynchronous wait failed - Exceeded timeout of 0.5 seconds, with unfulfilled expectations: foo
450
+ // CHECK: .*[/\\] Tests[/\\] Functional[/\\] Asynchronous[/\\] Expectations[/\\] main.swift:[[@LINE+8]]: error: ExpectationsTestCase.test_runLoopInsideDispatch : Asynchronous wait failed - Exceeded timeout of 0.5 seconds, with unfulfilled expectations: foo
451
451
// CHECK: Test Case 'ExpectationsTestCase.test_runLoopInsideDispatch' failed \(\d+\.\d+ seconds\)
452
452
func test_runLoopInsideDispatch( ) {
453
453
DispatchQueue . main. async {
0 commit comments