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.
This commit is contained in:
Marco Trevisan (Treviño) 2019-09-30 19:44:45 +02:00 committed by Thomas Haller
parent 5307b1ed73
commit 073eda68fc

View file

@ -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" \