Skip to content

Commit 057982c

Browse files
committed
Fix the test by removing a system-dependent check
The removed check was dependent on the malloc implementation of the target operating system, because it asks for a real size of the allocated memory block. Usually, there is only a minor over-allocation due to the way how most malloc implementations work. But this is not guaranteed to hold for any malloc implementation. rdar://problem/32315336
1 parent 41dfeef commit 057982c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

test/stdlib/ManagedBuffer.swift

-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
// RUN: %target-run-simple-swift
1313
// REQUIRES: executable_test
1414

15-
// UNSUPPORTED: OS=linux-gnu
16-
1715
import StdlibUnittest
1816

1917

@@ -193,7 +191,6 @@ tests.test("ManagedBufferPointer") {
193191
let s = buf!
194192
expectEqual(0, s.count)
195193
expectLE(10, s.capacity)
196-
expectGE(12, s.capacity) // allow some over-allocation but not too much
197194

198195
expectEqual(s.count, mgr.header.count.value)
199196
expectEqual(s.capacity, mgr.header.capacity)

0 commit comments

Comments
 (0)