diff options
author | Marco Trevisan (TreviƱo) <mail@3v1n0.net> | 2019-09-30 19:44:45 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-10-02 09:11:28 +0200 |
commit | 073eda68fcfda777fb5ec93c41e5babe21ce7be1 (patch) | |
tree | 8568779c0c4e86dc2ec818cd6af41a8d7d3a8cbc | |
parent | 5307b1ed733fd0b91a1ef8bd5c58d8c68312ee2c (diff) | |
download | NetworkManager-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-x | tools/run-nm-test.sh | 2 |
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" \ |