Skip to content

Commit eba83b8

Browse files
committed
Tests: Enable more Windows Windows tests
Enable more tests on Windows that are currently passing in Basics/FileSystem/*.swift Depends on: #8448 Partially Addresses: #8433 Issue: rdar://148248105
1 parent c7673b6 commit eba83b8

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

Tests/BasicsTests/FileSystem/PathTests.swift

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ struct PathTests {
4949
}
5050

5151
@Test(
52-
.skipHostOS(.windows),
52+
// skipHostOS(.windows),
5353
arguments: [
5454
(path: "/ab//cd//ef", expected: (windows ? #"\ab\cd\ef"# : "/ab/cd/ef"), label: "repeated path seperators"), // skip on windows
5555
(path: "/ab///cd//ef", expected: (windows ? #"\ab\cd\ef"# : "/ab/cd/ef"), label: "repeated path seperators"), // skip on windows
@@ -97,7 +97,7 @@ struct PathTests {
9797
}
9898

9999
@Test(
100-
.skipHostOS(.windows),
100+
// skipHostOS(.windows),
101101
arguments: [
102102
(path: "/", expected: (windows ? #"\"# : "/")),
103103
(path: "/a", expected: (windows ? #"\"# : "/")),
@@ -113,7 +113,7 @@ struct PathTests {
113113
}
114114

115115
@Test(
116-
.skipHostOS(.windows),
116+
// skipHostOS(.windows),
117117
arguments: [
118118
(path: "/", expected: (windows ? #"\"# : "/")),
119119
(path: "/a", expected: "a"),
@@ -128,7 +128,7 @@ struct PathTests {
128128
}
129129

130130
@Test(
131-
.skipHostOS(.windows),
131+
// skipHostOS(.windows),
132132
arguments: [
133133
(path: "/", expected: (windows ? #"\"# : "/")),
134134
(path: "/a", expected: "a"),
@@ -167,7 +167,7 @@ struct PathTests {
167167
}
168168

169169
@Test(
170-
.skipHostOS(.windows),
170+
// skipHostOS(.windows),
171171
arguments: [
172172
(path: "/", expected: ["/"]),
173173
(path: "/.", expected: ["/"]),
@@ -244,7 +244,7 @@ struct PathTests {
244244
}
245245

246246
@Test(
247-
.skipHostOS(.windows)
247+
// skipHostOS(.windows)
248248
)
249249
func absolutePathValidation() throws {
250250
#expect(throws: Never.self) {
@@ -261,7 +261,7 @@ struct PathTests {
261261
}
262262

263263
@Test(
264-
.skipHostOS(.windows)
264+
// skipHostOS(.windows)
265265
)
266266
func comparison() {
267267
#expect(AbsolutePath("/") <= AbsolutePath("/"));
@@ -299,7 +299,7 @@ struct PathTests {
299299
}
300300

301301
@Test(
302-
.skipHostOS(.windows),
302+
// skipHostOS(.windows),
303303
arguments: [
304304
(path: "ab//cd//ef", expected: (windows ? #"ab\cd\ef"# : "ab/cd/ef"), label: "repeated path seperators"),
305305
(path: "ab//cd///ef", expected: (windows ? #"ab\cd\ef"# : "ab/cd/ef"), label: "repeated path seperators"),
@@ -354,7 +354,7 @@ struct PathTests {
354354
}
355355

356356
@Test(
357-
.skipHostOS(.windows),
357+
// skipHostOS(.windows),
358358
arguments: [
359359
(path: "ab/c//d/", expected: (windows ? #"ab\c"# : "ab/c")),
360360
(path: "../a", expected: ".."),
@@ -374,7 +374,7 @@ struct PathTests {
374374
}
375375

376376
@Test(
377-
.skipHostOS(.windows),
377+
// skipHostOS(.windows),
378378
arguments: [
379379
(path: "../..", expected: ".."),
380380
(path: "../a", expected: "a"),
@@ -394,7 +394,7 @@ struct PathTests {
394394
}
395395

396396
@Test(
397-
.skipHostOS(.windows),
397+
// skipHostOS(.windows),
398398
arguments: [
399399
(path: "../..", expected: ".."),
400400
(path: "../a", expected: "a"),
@@ -442,7 +442,7 @@ struct PathTests {
442442
}
443443

444444
@Test(
445-
.skipHostOS(.windows),
445+
// skipHostOS(.windows),
446446
arguments: [
447447
(path: "", expected: ["."]),
448448
(path: ".", expected: ["."]),
@@ -469,7 +469,7 @@ struct PathTests {
469469
}
470470

471471
@Test(
472-
.skipHostOS(.windows)
472+
// skipHostOS(.windows)
473473
)
474474
func relativePathValidation() throws {
475475
#expect(throws: Never.self) {
@@ -484,7 +484,7 @@ struct PathTests {
484484
}
485485

486486
@Test(
487-
.skipHostOS(.windows)
487+
// skipHostOS(.windows)
488488
)
489489
@available(*, deprecated)
490490
func concatenation() throws {
@@ -525,7 +525,7 @@ struct PathTests {
525525
}
526526

527527
@Test(
528-
.skipHostOS(.windows)
528+
// skipHostOS(.windows)
529529
)
530530
func relativePathFromAbsolutePaths() throws {
531531
#expect(AbsolutePath("/").relative(to: AbsolutePath("/")) == RelativePath("."));
@@ -538,7 +538,7 @@ struct PathTests {
538538
}
539539

540540
@Test(
541-
.skipHostOS(.windows)
541+
// skipHostOS(.windows)
542542
)
543543
func codable() throws {
544544
struct Foo: Codable, Equatable {

Tests/BasicsTests/FileSystem/VFSTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func testWithTemporaryDirectory(
3939

4040
struct VFSTests {
4141
@Test(
42-
.skipHostOS(.windows)
42+
// .skipHostOS(.windows)
4343
)
4444
func localBasics() throws {
4545
// tiny PE binary from: https://archive.is/w01DO

0 commit comments

Comments
 (0)