Commit bb6d87f6 authored by Dimitrie O. Paun's avatar Dimitrie O. Paun Committed by Alexandre Julliard

Heap tests cleanup.

parent 90c42fed
......@@ -18,14 +18,17 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "wine/test.h"
#include <stdlib.h>
#include "wine/test.h"
static void test_realloc( void )
START_TEST(heap)
{
void *mem = NULL;
void *mem;
mem = realloc(mem, 10);
mem = malloc(0);
ok(mem != NULL, "memory not allocated for size 0\n");
mem = realloc(NULL, 10);
ok(mem != NULL, "memory not allocated\n");
mem = realloc(mem, 20);
......@@ -33,9 +36,7 @@ static void test_realloc( void )
mem = realloc(mem, 0);
ok(mem == NULL, "memory not freed\n");
}
START_TEST(heap)
{
test_realloc();
mem = realloc(NULL, 0);
ok(mem != NULL, "memory not (re)allocated for size 0\n");
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment