From: Szabolcs Nagy Date: Tue, 7 Jan 2014 23:17:02 +0000 (+0100) Subject: add strcmp stress test to make test X-Git-Url: http://nsz.repo.hu/git/?p=ldtrace;a=commitdiff_plain;h=39bb160cb7e48dd391dadb4b0de1f5eb5ce8c5ba add strcmp stress test to make test --- diff --git a/Makefile b/Makefile index a1de594..c0d1a68 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,9 @@ CFLAGS=-std=c99 -Os -g LDFLAGS=-g CC=musl-gcc -all: wrap.so hello +all: wrap.so hello stress hello: hello.o +stress: stress.o wrap.o: head.h func.h wrap.so: wrap.o $(CC) $(LDFLAGS) -shared -o $@ $< -ldl -lm -lrt -lcrypt @@ -10,3 +11,4 @@ clean: rm -f wrap.so hello *.o test: all LD_PRELOAD=./wrap.so ./hello + LD_PRELOAD=./wrap.so ./stress 2>&1 |wc -l