diff options
author | Stef Walter <stefw@gnome.org> | 2013-05-15 11:51:22 +0200 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-05-15 11:51:22 +0200 |
commit | de8b99e2f04f94313a7748adedf7535603013951 (patch) | |
tree | 2e9ce2fc6cc7cf1dfc86fd7af731b12f252cae59 /build/Makefile.tests | |
parent | 4bd7eda265b94dfcb9a1db4aba756e1e05dd4f87 (diff) |
Implement valgrind's hellgrind checks for threading problems
And cleanup our locks/locking model. There's no need to use
recursive locks, especially since we can't use them on all
platforms. In addition adjust taking of locks during initialization
so that there's no chance of deadlocking here.
Diffstat (limited to 'build/Makefile.tests')
-rw-r--r-- | build/Makefile.tests | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/build/Makefile.tests b/build/Makefile.tests index 3faa7f3..0c5b85c 100644 --- a/build/Makefile.tests +++ b/build/Makefile.tests @@ -12,8 +12,13 @@ MEMCHECK_ENV = $(TEST_RUNNER) valgrind --error-exitcode=80 --quiet --trace-child LEAKCHECK_ENV = $(TEST_RUNNER) valgrind --error-exitcode=81 --quiet --leak-check=yes +HELLCHECK_ENV = $(TEST_RUNNER) valgrind --error-exitcode=82 --quiet --tool=helgrind + memcheck: all make $(AM_MAKEFLAGS) TESTS_ENVIRONMENT="$(MEMCHECK_ENV)" check-TESTS leakcheck: all make $(AM_MAKEFLAGS) TESTS_ENVIRONMENT="$(LEAKCHECK_ENV)" check-TESTS + +hellcheck: all + make $(AM_MAKEFLAGS) TESTS_ENVIRONMENT="$(HELLCHECK_ENV)" check-TESTS |