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 18:33:50 +0000 (10:33 -0800)
commit535c5992d6692124357247a70a37772fae1a8569
tree911f75d53188cb8b4db79aee21939e01ee70a84c
parent80775d6a77a2dcd3ea478b01bcac395c308acbc8
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

(cherry picked from commit 884f76e3aa081740f7cfe582b11af7446bf77bd9)

Change-Id: Ice4fd3cd427523edc2ca4ba25caf9701c353db47
tests/malloc_test.cpp