@@ -25,10 +25,6 @@ var jvm: JavaVirtualMachine {
2525
2626class BasicRuntimeTests : XCTestCase {
2727 func testJavaObjectManagement( ) throws {
28- if isLinux {
29- throw XCTSkip ( " Attempts to refcount a null pointer on Linux " )
30- }
31-
3228 let environment = try jvm. environment ( )
3329 let sneakyJavaThis : jobject
3430 do {
@@ -55,10 +51,6 @@ class BasicRuntimeTests: XCTestCase {
5551 }
5652
5753 func testJavaExceptionsInSwift( ) throws {
58- if isLinux {
59- throw XCTSkip ( " Attempts to refcount a null pointer on Linux " )
60- }
61-
6254 let environment = try jvm. environment ( )
6355
6456 do {
@@ -69,21 +61,13 @@ class BasicRuntimeTests: XCTestCase {
6961 }
7062
7163 func testStaticMethods( ) throws {
72- if isLinux {
73- throw XCTSkip ( " Attempts to refcount a null pointer on Linux " )
74- }
75-
7664 let environment = try jvm. environment ( )
7765
7866 let urlConnectionClass = try JavaClass < URLConnection > ( in: environment)
7967 XCTAssert ( urlConnectionClass. getDefaultAllowUserInteraction ( ) == false )
8068 }
8169
8270 func testClassInstanceLookup( ) throws {
83- if isLinux {
84- throw XCTSkip ( " Attempts to refcount a null pointer on Linux " )
85- }
86-
8771 let environment = try jvm. environment ( )
8872
8973 do {
@@ -96,12 +80,3 @@ class BasicRuntimeTests: XCTestCase {
9680
9781@JavaClass ( " org.swift.javakit.Nonexistent " )
9882struct Nonexistent { }
99-
100- /// Whether we're running on Linux.
101- var isLinux : Bool {
102- #if os(Linux)
103- return true
104- #else
105- return false
106- #endif
107- }
0 commit comments