From a3fb2b9531f40d4191841d6121298544105ceed6 Mon Sep 17 00:00:00 2001 From: Theo Butler Date: Thu, 14 Feb 2019 22:31:45 -0500 Subject: [PATCH] cleanup some tests --- src/test/func/malloc/malloc.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/func/malloc/malloc.cc b/src/test/func/malloc/malloc.cc index bef2576..7cb02a3 100644 --- a/src/test/func/malloc/malloc.cc +++ b/src/test/func/malloc/malloc.cc @@ -88,8 +88,8 @@ int main(int argc, char** argv) test_calloc(n, size, SUCCESS, false); test_calloc(n, 0, SUCCESS, false); - test_calloc(0, size, SUCCESS, false); } + test_calloc(0, size, SUCCESS, false); test_realloc(malloc(size), size, SUCCESS, false); test_realloc(malloc(size), 0, SUCCESS, true); @@ -107,7 +107,6 @@ int main(int argc, char** argv) const size_t size = sizeclass_to_size(sc); test_posix_memalign(size, align, SUCCESS, false); test_posix_memalign(size, 0, EINVAL, true); - test_posix_memalign(0, align, SUCCESS, false); test_memalign(size, align, SUCCESS, false); } test_posix_memalign(0, align, SUCCESS, false);