Remove check that depends on malloc implementation.
authorPeter Griess <pgriess@fb.com>
Thu, 10 Oct 2013 17:51:28 +0000 (10:51 -0700)
committerSara Golemon <sgolemon@fb.com>
Thu, 24 Oct 2013 21:53:41 +0000 (14:53 -0700)
commite6c32d1b6293c1cc5ce92854855cc24dea697c72
tree6544a08ef84e37696ca7e993838ca17d7bde9d60
parentbaab37435b9b210d9f2068e8a85e7a23d6a518f5
Remove check that depends on malloc implementation.

Summary:
- The EXPECT_EQ(vec.capacity(), vec2.capacity()) check is implicitly
testing how the platform's malloc() and malloc_usable_size()
implementations interact. We know that small_vector will attempt to
allocate storage for 3 elements via malloc(), but the small_vector
implementation then uses malloc_usable_size() to determine capacity,
which can return more than the size requested by malloc(). As a
result, capacity may grow more than expected depending on how the
malloc implementation works.

Test Plan:
- fbconfig -r folly && fbmake runtests
- ./configure && make check on Ubuntu/FC/Mac

Reviewed By: alandau@fb.com

FB internal diff: D1008922
folly/test/small_vector_test.cpp