folly/test: correct an erroneous test for failed mmap
authorJim Meyering <meyering@fb.com>
Tue, 5 Aug 2014 20:16:15 +0000 (13:16 -0700)
committerSara Golemon <sgolemon@fb.com>
Thu, 14 Aug 2014 18:49:04 +0000 (11:49 -0700)
commit1fc548e12813f50591e2c6c2c176f00f9824f597
treea32741838b5421f86cf897d2c4cc2b25434b61cc
parent942204a40c737db166205064c6997d74c7c153fa
folly/test: correct an erroneous test for failed mmap

Summary:
* folly/test/AtomicHashArrayTest.cpp (MmapAllocator):
Upon failure, mmap returns MAP_FAILED, not NULL.

Test Plan:
fbconfig -r folly/test:atomic_hash_array_test && fbmake runtests

Reviewed By: mwang@fb.com

FB internal diff: D1481080

Tasks: 4846893
folly/test/AtomicHashArrayTest.cpp