@@ -29,7 +29,6 @@ struct TraitTests {
29
29
@Test (
30
30
. IssueWindowsPathTestsFailures,
31
31
. IssueWindowsRelativePathAssert,
32
- . IssueSwiftBuildLinuxRunnable,
33
32
. IssueProductTypeForObjectLibraries,
34
33
. tags(
35
34
Tag . Feature. Command. Run,
@@ -40,9 +39,7 @@ struct TraitTests {
40
39
buildSystem: BuildSystemProvider . Kind ,
41
40
configuration: BuildConfiguration ,
42
41
) async throws {
43
- try await withKnownIssue ( """
44
- Linux: https://github.com/swiftlang/swift-package-manager/issues/8416
45
- """ , isIntermittent: ( ProcessInfo . hostOperatingSystem == . linux) || ( ProcessInfo . hostOperatingSystem == . windows && buildSystem == . swiftbuild) ) {
42
+ try await withKnownIssue ( isIntermittent: ( ProcessInfo . hostOperatingSystem == . windows && buildSystem == . swiftbuild) ) {
46
43
try await fixture ( name: " Traits " ) { fixturePath in
47
44
let ( stdout, stderr) = try await executeSwiftRun (
48
45
fixturePath. appending ( " Example " ) ,
@@ -66,14 +63,13 @@ struct TraitTests {
66
63
}
67
64
} when: {
68
65
( ProcessInfo . hostOperatingSystem == . windows && ( CiEnvironment . runningInSmokeTestPipeline || buildSystem == . swiftbuild) )
69
- || ( buildSystem == . swiftbuild && [ . linux , . windows] . contains ( ProcessInfo . hostOperatingSystem) )
66
+ || ( buildSystem == . swiftbuild && [ . windows] . contains ( ProcessInfo . hostOperatingSystem) )
70
67
}
71
68
}
72
69
73
70
@Test (
74
71
. IssueWindowsPathTestsFailures,
75
72
. IssueWindowsRelativePathAssert,
76
- . IssueSwiftBuildLinuxRunnable,
77
73
. IssueProductTypeForObjectLibraries,
78
74
. tags(
79
75
Tag . Feature. Command. Run,
@@ -86,7 +82,6 @@ struct TraitTests {
86
82
) async throws {
87
83
try await withKnownIssue (
88
84
"""
89
- Linux: https://github.com/swiftlang/swift-package-manager/issues/8416
90
85
Windows: " https://github.com/swiftlang/swift-build/issues/609 "
91
86
""" ,
92
87
isIntermittent: ( ProcessInfo . hostOperatingSystem == . windows) ,
@@ -126,7 +121,6 @@ struct TraitTests {
126
121
@Test (
127
122
. IssueWindowsPathTestsFailures,
128
123
. IssueWindowsRelativePathAssert,
129
- . IssueSwiftBuildLinuxRunnable,
130
124
. IssueProductTypeForObjectLibraries,
131
125
. tags(
132
126
Tag . Feature. Command. Run,
@@ -139,7 +133,6 @@ struct TraitTests {
139
133
) async throws {
140
134
try await withKnownIssue (
141
135
"""
142
- Linux: https://github.com/swiftlang/swift-package-manager/issues/8416,
143
136
Windows: https://github.com/swiftlang/swift-build/issues/609
144
137
""" ,
145
138
isIntermittent: ( ProcessInfo . hostOperatingSystem == . windows) ,
@@ -176,7 +169,6 @@ struct TraitTests {
176
169
@Test (
177
170
. IssueWindowsPathTestsFailures,
178
171
. IssueWindowsRelativePathAssert,
179
- . IssueSwiftBuildLinuxRunnable,
180
172
. IssueProductTypeForObjectLibraries,
181
173
. tags(
182
174
Tag . Feature. Command. Run,
@@ -189,7 +181,6 @@ struct TraitTests {
189
181
) async throws {
190
182
try await withKnownIssue (
191
183
"""
192
- Linux: https://github.com/swiftlang/swift-package-manager/issues/8416,
193
184
Windows: https://github.com/swiftlang/swift-build/issues/609
194
185
""" ,
195
186
isIntermittent: ( ProcessInfo . hostOperatingSystem == . windows) ,
@@ -230,7 +221,6 @@ struct TraitTests {
230
221
@Test (
231
222
. IssueWindowsPathTestsFailures,
232
223
. IssueWindowsRelativePathAssert,
233
- . IssueSwiftBuildLinuxRunnable,
234
224
. IssueProductTypeForObjectLibraries,
235
225
. tags(
236
226
Tag . Feature. Command. Run,
@@ -241,10 +231,7 @@ struct TraitTests {
241
231
buildSystem: BuildSystemProvider . Kind ,
242
232
configuration: BuildConfiguration ,
243
233
) async throws {
244
- try await withKnownIssue ( """
245
- Linux: https://github.com/swiftlang/swift-package-manager/issues/8416,
246
- """ ,
247
- isIntermittent: ( ProcessInfo . hostOperatingSystem == . windows && buildSystem == . swiftbuild) ) {
234
+ try await withKnownIssue ( isIntermittent: ( ProcessInfo . hostOperatingSystem == . windows && buildSystem == . swiftbuild) ) {
248
235
try await fixture ( name: " Traits " ) { fixturePath in
249
236
let ( stdout, stderr) = try await executeSwiftRun (
250
237
fixturePath. appending ( " Example " ) ,
@@ -271,7 +258,6 @@ struct TraitTests {
271
258
@Test (
272
259
. IssueWindowsPathTestsFailures,
273
260
. IssueWindowsRelativePathAssert,
274
- . IssueSwiftBuildLinuxRunnable,
275
261
. IssueProductTypeForObjectLibraries,
276
262
. tags(
277
263
Tag . Feature. Command. Run,
@@ -283,7 +269,6 @@ struct TraitTests {
283
269
configuration: BuildConfiguration ,
284
270
) async throws {
285
271
try await withKnownIssue ( """
286
- Linux: https://github.com/swiftlang/swift-package-manager/issues/8416,
287
272
Windows: https://github.com/swiftlang/swift-build/issues/609
288
273
""" ,
289
274
isIntermittent: ( ProcessInfo . hostOperatingSystem == . windows && buildSystem == . swiftbuild) ,
@@ -317,7 +302,6 @@ struct TraitTests {
317
302
@Test (
318
303
. IssueWindowsPathTestsFailures,
319
304
. IssueWindowsRelativePathAssert,
320
- . IssueSwiftBuildLinuxRunnable,
321
305
. IssueProductTypeForObjectLibraries,
322
306
. tags(
323
307
Tag . Feature. Command. Run,
@@ -330,7 +314,6 @@ struct TraitTests {
330
314
) async throws {
331
315
try await withKnownIssue (
332
316
"""
333
- Linux: https://github.com/swiftlang/swift-package-manager/issues/8416,
334
317
Windows: https://github.com/swiftlang/swift-build/issues/609
335
318
""" ,
336
319
isIntermittent: ( ProcessInfo . hostOperatingSystem == . windows) ,
@@ -374,7 +357,6 @@ struct TraitTests {
374
357
@Test (
375
358
. IssueWindowsPathTestsFailures,
376
359
. IssueWindowsRelativePathAssert,
377
- . IssueSwiftBuildLinuxRunnable,
378
360
. IssueProductTypeForObjectLibraries,
379
361
. tags(
380
362
Tag . Feature. Command. Run,
@@ -387,7 +369,6 @@ struct TraitTests {
387
369
) async throws {
388
370
try await withKnownIssue (
389
371
"""
390
- Linux: https://github.com/swiftlang/swift-package-manager/issues/8416,
391
372
Windows: https://github.com/swiftlang/swift-build/issues/609
392
373
""" ,
393
374
isIntermittent: ( ProcessInfo . hostOperatingSystem == . windows)
@@ -615,7 +596,6 @@ struct TraitTests {
615
596
}
616
597
617
598
@Test (
618
- . IssueSwiftBuildLinuxRunnable,
619
599
. tags(
620
600
Tag . Feature. Command. Run,
621
601
) ,
@@ -626,38 +606,29 @@ struct TraitTests {
626
606
configuration: BuildConfiguration ,
627
607
) async throws {
628
608
try await fixture ( name: " Traits " ) { fixturePath in
629
- try await withKnownIssue ( """
630
- Linux: https://github.com/swiftlang/swift-package-manager/issues/8416,
631
- """ ,
632
- isIntermittent: true ,
633
- ) {
634
- let error = await #expect( throws: SwiftPMError . self) {
635
- try await executeSwiftRun (
636
- fixturePath. appending ( " DisablingEmptyDefaultsExample " ) ,
637
- " DisablingEmptyDefaultsExample " ,
638
- configuration: configuration,
639
- buildSystem: buildSystem,
640
- )
641
- }
609
+ let error = await #expect( throws: SwiftPMError . self) {
610
+ try await executeSwiftRun (
611
+ fixturePath. appending ( " DisablingEmptyDefaultsExample " ) ,
612
+ " DisablingEmptyDefaultsExample " ,
613
+ configuration: configuration,
614
+ buildSystem: buildSystem,
615
+ )
616
+ }
642
617
643
- guard case SwiftPMError . executionFailure( _, _, let stderr) = try #require( error) else {
644
- Issue . record ( " Incorrect error was raised. " )
645
- return
646
- }
618
+ guard case SwiftPMError . executionFailure( _, _, let stderr) = try #require( error) else {
619
+ Issue . record ( " Incorrect error was raised. " )
620
+ return
621
+ }
647
622
648
- let expectedErr = """
649
- error: Disabled default traits by package 'disablingemptydefaultsexample' (DisablingEmptyDefaultsExample) on package 'package11' (Package11) that declares no traits. This is prohibited to allow packages to adopt traits initially without causing an API break.
623
+ let expectedErr = """
624
+ error: Disabled default traits by package 'disablingemptydefaultsexample' (DisablingEmptyDefaultsExample) on package 'package11' (Package11) that declares no traits. This is prohibited to allow packages to adopt traits initially without causing an API break.
650
625
651
- """
652
- #expect( stderr. contains ( expectedErr) )
653
- } when: {
654
- buildSystem == . swiftbuild && ProcessInfo . hostOperatingSystem == . linux
655
- }
626
+ """
627
+ #expect( stderr. contains ( expectedErr) )
656
628
}
657
629
}
658
630
659
631
@Test (
660
- . IssueSwiftBuildLinuxRunnable,
661
632
. IssueProductTypeForObjectLibraries,
662
633
. tags(
663
634
Tag . Feature. Command. Run,
@@ -705,7 +676,6 @@ struct TraitTests {
705
676
) async throws {
706
677
try await withKnownIssue (
707
678
"""
708
- Linux: https://github.com/swiftlang/swift-package-manager/issues/8416,
709
679
Windows: https://github.com/swiftlang/swift-build/issues/609
710
680
""" ,
711
681
isIntermittent: ( ProcessInfo . hostOperatingSystem == . windows) ,
0 commit comments