Skip to content

Commit 06737b3

Browse files
committed
Revert "Temporarily disable test on Linux"
This reverts commit 5ee3126.
1 parent 5ee3126 commit 06737b3

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

Tests/Java2SwiftTests/Java2SwiftTests.swift

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ public struct JavaMonth {
3030

3131
class Java2SwiftTests: XCTestCase {
3232
func testJavaLangObjectMapping() throws {
33-
if isLinux {
34-
throw XCTSkip("Crashes for unexplained reasons on Linux")
35-
}
36-
3733
try assertTranslatedClass(
3834
JavaObject.self,
3935
swiftTypeName: "MyJavaObject",
@@ -56,10 +52,6 @@ class Java2SwiftTests: XCTestCase {
5652
}
5753

5854
func testEnum() throws {
59-
if isLinux {
60-
throw XCTSkip("Crashes for unexplained reasons on Linux")
61-
}
62-
6355
try assertTranslatedClass(
6456
JavaMonth.self,
6557
swiftTypeName: "Month",
@@ -90,10 +82,6 @@ class Java2SwiftTests: XCTestCase {
9082
}
9183

9284
func testGenericCollections() throws {
93-
if isLinux {
94-
throw XCTSkip("Crashes for unexplained reasons on Linux")
95-
}
96-
9785
try assertTranslatedClass(
9886
MyArrayList<JavaObject>.self,
9987
swiftTypeName: "JavaArrayList",
@@ -111,10 +99,6 @@ class Java2SwiftTests: XCTestCase {
11199
}
112100

113101
func testLinkedList() throws {
114-
if isLinux {
115-
throw XCTSkip("Crashes for unexplained reasons on Linux")
116-
}
117-
118102
try assertTranslatedClass(
119103
MyLinkedList<JavaObject>.self,
120104
swiftTypeName: "JavaLinkedList",
@@ -183,12 +167,3 @@ func assertTranslatedClass<JavaClassType: AnyJavaObject>(
183167
XCTFail("Expected chunk '\(expectedChunk)' not found in '\(swiftFileText)'", file: file, line: line)
184168
}
185169
}
186-
187-
/// Whether we're running on Linux.
188-
var isLinux: Bool {
189-
#if os(Linux)
190-
return true
191-
#else
192-
return false
193-
#endif
194-
}

0 commit comments

Comments
 (0)