summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (TreviƱo) <mail@3v1n0.net>2019-09-30 19:44:45 +0200
committerThomas Haller <thaller@redhat.com>2019-10-02 09:11:28 +0200
commit073eda68fcfda777fb5ec93c41e5babe21ce7be1 (patch)
tree8568779c0c4e86dc2ec818cd6af41a8d7d3a8cbc
parent5307b1ed733fd0b91a1ef8bd5c58d8c68312ee2c (diff)
downloadNetworkManager-073eda68fcfda777fb5ec93c41e5babe21ce7be1.tar.gz
run-nm-test: Set NM_TEST_UNDER_VALGRIND accordingly
When a test is going to be run under valgrind we set NM_TEST_UNDER_VALGRIND so that we can properly check whether this is happening.
-rwxr-xr-xtools/run-nm-test.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/run-nm-test.sh b/tools/run-nm-test.sh
index 135310acd0..9841065921 100755
--- a/tools/run-nm-test.sh
+++ b/tools/run-nm-test.sh
@@ -229,6 +229,7 @@ if [[ -n "$BUILDDIR" ]]; then
fi
if ! _is_true "$NMTST_USE_VALGRIND" 0; then
+ export NM_TEST_UNDER_VALGRIND=0
"${NMTST_DBUS_RUN_SESSION[@]}" \
"$TEST" "$@"
exit $?
@@ -250,6 +251,7 @@ LOGFILE="${TEST}.valgrind-log"
export G_SLICE=always-malloc
export G_DEBUG=gc-friendly
+export NM_TEST_UNDER_VALGRIND=1
"${NMTST_DBUS_RUN_SESSION[@]}" \
"${NMTST_LIBTOOL[@]}" \
"$NMTST_VALGRIND" \