freebsd-dev/tools/test/malloc/Makefile
Kelly Yancey adeb92a24c Remove broken attempt to compile libc's malloc source directly; this
allows this tool to compile again. Albeit, now to test a new malloc
implementation one has to install the new libc which may have bad
consequences (i.e. if the new malloc implementation were buggy).

Add logic to workaround malloc's current behaviour of returning an
invalid non-NULL pointer for 0 byte allocation requests; this prevents the
tool from coring during the NOPS loop.

Add $FreeBSD$ tags.
2002-01-02 06:42:34 +00:00

16 lines
344 B
Makefile

# $FreeBSD$
PROG= malloc
SRCS= main.c
.PATH: ${.CURDIR}/../../../lib/libc/stdlib
NOMAN= sorry
test: malloc
@echo
@csh -x -c "time ./malloc 500000 2000 8192"
@csh -x -c "time ./malloc 50000000 2000 8192"
@csh -x -c "time ./malloc 500000 14000 8192"
@csh -x -c "time ./malloc 20000000 20000 2048"
.include <bsd.prog.mk>