diff options
author | Magnus Ahltorp <map@kth.se> | 2016-02-12 17:39:50 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2016-04-25 13:14:11 +0200 |
commit | eff1f10a090a29ab67f417856b1caa5c27ed86e1 (patch) | |
tree | 17994ef6f8cd4027d40da79f0c599b46ba7c72fd /c_src | |
parent | 5f0d8bf56ba700fb97f526b27100c7f1cb51ad4b (diff) |
Make valgrind exit with error code
Diffstat (limited to 'c_src')
-rw-r--r-- | c_src/Makefile | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/c_src/Makefile b/c_src/Makefile index d065d6e..fc18e41 100644 --- a/c_src/Makefile +++ b/c_src/Makefile @@ -55,18 +55,20 @@ permdb.so: $(permdbso_OBJS) permdbtest: $(permdbtest_OBJS) $(CC) $(permdbtest_OBJS) $(LDFLAGS) -o permdbtest +VALGRIND = valgrind --leak-check=full --error-exitcode=1 -q + permdb-valgrind: permdbtest rm /tmp/permdb-valgrind-test /tmp/permdb-valgrind-test.idx - valgrind --leak-check=full ./permdbtest /tmp/permdb-valgrind-test 10000 2048 1000 + $(VALGRIND) ./permdbtest /tmp/permdb-valgrind-test 10000 2048 1000 rm /tmp/permdb-valgrind-test.idx - valgrind --leak-check=full ./permdbtest /tmp/permdb-valgrind-test 10000 2048 1000 + $(VALGRIND) ./permdbtest /tmp/permdb-valgrind-test 10000 2048 1000 rm /tmp/permdb-valgrind-test /tmp/permdb-valgrind-test.idx - valgrind --leak-check=full ./permdbtest /tmp/permdb-valgrind-test 10000 2048 1000 - valgrind --leak-check=full ./permdbtest /tmp/permdb-valgrind-test 10000 2048 1000 + $(VALGRIND) ./permdbtest /tmp/permdb-valgrind-test 10000 2048 1000 + $(VALGRIND) ./permdbtest /tmp/permdb-valgrind-test 10000 2048 1000 rm /tmp/permdb-valgrind-test /tmp/permdb-valgrind-test.idx - valgrind --leak-check=full ./permdbtest /tmp/permdb-valgrind-test 10 99 1 + $(VALGRIND) ./permdbtest /tmp/permdb-valgrind-test 10 99 1 rm /tmp/permdb-valgrind-test.idx - valgrind --leak-check=full ./permdbtest /tmp/permdb-valgrind-test 10 99 1 + $(VALGRIND) ./permdbtest /tmp/permdb-valgrind-test 10 99 1 rm /tmp/permdb-valgrind-test /tmp/permdb-valgrind-test.idx - valgrind --leak-check=full ./permdbtest /tmp/permdb-valgrind-test 10 99 1 - valgrind --leak-check=full ./permdbtest /tmp/permdb-valgrind-test 10 99 1 + $(VALGRIND) ./permdbtest /tmp/permdb-valgrind-test 10 99 1 + $(VALGRIND) ./permdbtest /tmp/permdb-valgrind-test 10 99 1 |