summaryrefslogtreecommitdiff
path: root/test/test-functions
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2016-01-15 09:03:34 +0100
committerDaniel Mack <github@zonque.org>2016-01-15 09:03:34 +0100
commitbf8febb96a1387169b8d89357828d7fed366127f (patch)
tree104489c12c5d60da2108e7875ca5b49a78cf7fa1 /test/test-functions
parent50b480246cf28820fb7b80894cb110402d8eecdf (diff)
parentcb2f9d3f296bc80b55f09880d61dfdf47fc98212 (diff)
Merge pull request #2328 from evverx/fix-transient-units-memeory-leak
Fix transient units memory leak
Diffstat (limited to 'test/test-functions')
-rw-r--r--test/test-functions11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test-functions b/test/test-functions
index 80d048c0d2..03753db38a 100644
--- a/test/test-functions
+++ b/test/test-functions
@@ -138,6 +138,17 @@ install_valgrind() {
dracut_install $_valgrind_dbg_and_supp
}
+create_valgrind_wrapper() {
+ local _valgrind_wrapper=$initdir/$ROOTLIBDIR/systemd-under-valgrind
+ ddebug "Create $_valgrind_wrapper"
+ cat >$_valgrind_wrapper <<EOF
+#!/bin/bash
+
+exec valgrind --leak-check=full --log-file=/valgrind.out $ROOTLIBDIR/systemd "\$@"
+EOF
+ chmod 0755 $_valgrind_wrapper
+}
+
install_dmevent() {
instmods dm_crypt =crypto
type -P dmeventd >/dev/null && dracut_install dmeventd