summaryrefslogtreecommitdiffstats
path: root/imap
diff options
context:
space:
mode:
authorSam Varshavchik2022-03-20 22:21:44 -0400
committerSam Varshavchik2022-03-20 22:21:44 -0400
commit86e68b439f8c5ee56bb74078906f94bf8a498982 (patch)
tree1245647556bb0255c560b1056659ce04bf66993a /imap
parent840fcf2802e91803c76080d3949d5a3e9e8e1d9c (diff)
downloadcourier-libs-86e68b439f8c5ee56bb74078906f94bf8a498982.tar.bz2
imap: fix make check without valgrind.
Diffstat (limited to 'imap')
-rw-r--r--imap/Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/imap/Makefile.am b/imap/Makefile.am
index 5f91b41..e919a55 100644
--- a/imap/Makefile.am
+++ b/imap/Makefile.am
@@ -240,7 +240,8 @@ check-am:
rm -f confmderror.txt
rm -rf confmdtest
@SHELL@ $(srcdir)/pop3testsuite | sed 's/^--=_.*/--mimeboundary/;s/ENOMEM.*/ENOMEM/;s/boundary=.*/boundary=/' | cmp -s - $(srcdir)/pop3testsuite.txt
- rm -f confmdmemleak; \
+ VALGRIND="`which valgrind 2>/dev/null`"; test "$$VALGRIND" != "" || exit 0; \
+ rm -f confmdmemleak; \
POP3INVOKE='@SHELL@ $(srcdir)/testsuitevalgrind ./pop3d.testmock' \
@SHELL@ -x $(srcdir)/pop3testsuite; \
test -f confmdmemleak || exit 0; exit 1