Checkpoint: add helgrind target, switch to timespec_get(), add cosmo_random()

This commit is contained in:
Ian Gulliver
2015-07-06 01:11:40 +00:00
parent 9e8891884b
commit 0e5723b9d0
4 changed files with 35 additions and 25 deletions

View File

@@ -1,5 +1,5 @@
CC ?= gcc
CFLAGS ?= -Wall -Werror -I/usr/local/include -fpic -O -g
CFLAGS ?= -Wall -Werror -I/usr/local/include -fpic -O -g --std=c11 --pedantic-errors
LDFLAGS ?= -Wall -L/usr/local/lib -L. -O
LIBS ?= -lcurl -ljansson -luuid -lpthread
@@ -24,5 +24,10 @@ clean:
test: test.o cosmopolite.o promise.o
$(CC) $(LDFLAGS) -o test test.o cosmopolite.o promise.o $(LIBS)
runtest: test
runtest: memcheck helgrind
memcheck: test
valgrind --leak-check=full --show-reachable=yes --num-callers=20 --suppressions=suppressions ./test
helgrind: test
valgrind --tool=helgrind ./test