projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
96314ed
)
Fix this so it works when valgrind is installed.
author
Ken Hornstein
<kenh@pobox.com>
Sat, 11 Feb 2012 04:38:40 +0000
(23:38 -0500)
committer
Ken Hornstein
<kenh@pobox.com>
Sat, 11 Feb 2012 04:38:40 +0000
(23:38 -0500)
test/inc/test-deb359167
patch
|
blob
|
history
diff --git
a/test/inc/test-deb359167
b/test/inc/test-deb359167
index
26aea11
..
72c6b7f
100755
(executable)
--- a/
test/inc/test-deb359167
+++ b/
test/inc/test-deb359167
@@
-12,9
+12,16
@@
require_prog valgrind
TESTMBOX="$THISDIR/deb359167.mbox"
TESTMBOX="$THISDIR/deb359167.mbox"
-if [ "$(${MD5SUM} "$TESTMBOX" | cut -d ' ' -f 1)" != "e6ac458b8cccba2b2fd866fb505aeb5e" ]; then
+if [ "$(output_md5 "$TESTMBOX" | cut -d ' ' -f 1)" != "e6ac458b8cccba2b2fd866fb505aeb5e" ]; then
echo "Test mailbox has been corrupted"
exit 1
fi
echo "Test mailbox has been corrupted"
exit 1
fi
+#
+# valgrind refuses to run on a setuid/setgid program, so chmod inc so it
+# isn't (just in case)
+#
+
+chmod 755 ${MH_INST_DIR}${bindir}/inc
+
valgrind --error-exitcode=1 --quiet inc -silent -file "$TESTMBOX"
valgrind --error-exitcode=1 --quiet inc -silent -file "$TESTMBOX"