ed7ec83f0d
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.
16 lines
344 B
Makefile
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>
|