From 86e68b439f8c5ee56bb74078906f94bf8a498982 Mon Sep 17 00:00:00 2001 From: Sam Varshavchik Date: Sun, 20 Mar 2022 22:21:44 -0400 Subject: imap: fix make check without valgrind. --- imap/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'imap/Makefile.am') 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 -- cgit v1.2.3