OSDN Git Service

Add tests for zero-sized allocations.
authorElliott Hughes <enh@google.com>
Thu, 11 Feb 2016 04:43:22 +0000 (20:43 -0800)
committerElliott Hughes <enh@google.com>
Thu, 11 Feb 2016 16:45:40 +0000 (08:45 -0800)
commit884f76e3aa081740f7cfe582b11af7446bf77bd9
treeebd6b34509a2198628aa5a25b76a8ff4af4c2804
parent8fa00a5836b49bbacfd08151edb039ed7c6db21d
Add tests for zero-sized allocations.

POSIX lets us return null and set errno, but that would be annoying and
surprising.

Bug: http://b/27101951
Change-Id: I320a8a14884abb806a8d30e3e6cf1ede28b49335
tests/malloc_test.cpp