Skip to content

Commit ec0f68c

Browse files
committed
[stdlib] Enable ManagedBuffer test on non-Darwin platforms
1 parent 65d546e commit ec0f68c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/1_stdlib/ManagedBuffer.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@
1212
// RUN: %target-run-simple-swift
1313
// REQUIRES: executable_test
1414

15-
// FIXME: rdar://problem/19648117 Needs splitting objc parts out
16-
// XFAIL: linux
17-
1815
import StdlibUnittest
1916

2017

18+
#if _runtime(_ObjC)
2119
import Foundation
20+
#endif
2221

2322
// Check that `NonObjectiveCBase` can be subclassed and the subclass can be
2423
// created.
@@ -262,8 +261,10 @@ tests.test("isUniquelyReferencedNonObjC") {
262261
var s2 = s
263262
expectFalse(isUniquelyReferencedNonObjC(&s))
264263
expectFalse(isUniquelyReferencedNonObjC(&s2))
264+
#if _runtime(_ObjC)
265265
var s3 = NSArray()
266266
expectFalse(isUniquelyReferencedNonObjC(&s3))
267+
#endif
267268
_fixLifetime(s)
268269
_fixLifetime(s2)
269270
}

0 commit comments

Comments
 (0)