summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2015-05-25 17:15:33 +0200
committerLubomir Rintel <lkundrak@v3.sk>2015-05-26 13:51:45 +0200
commitdd959087a2aaf4ba3b3b222d65518c98cef930c3 (patch)
tree64934ddbad5c504a2d390969a65d852fa94427ce
parent6463ce5dd9ffc1aae3ca9ddc4dac4e25fd815237 (diff)
downloadNetworkManager-dd959087a2aaf4ba3b3b222d65518c98cef930c3.tar.gz
tests: be a bit more helpful when valgrind tests fail
-rwxr-xr-xtools/run-test-valgrind.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/tools/run-test-valgrind.sh b/tools/run-test-valgrind.sh
index e723d75fbc..b93b9472b7 100755
--- a/tools/run-test-valgrind.sh
+++ b/tools/run-test-valgrind.sh
@@ -36,7 +36,19 @@ if [ $RESULT -eq 0 -a "$(wc -c "$LOGFILE" | awk '{print$1}')" -ne 0 ]; then
fi
if [ $RESULT -ne 0 -a $RESULT -ne 77 ]; then
- echo "Don't forget to check the valgrind log at '`realpath $LOGFILE`'." >&2
+ echo "valgrind failed! Check the log at '`realpath $LOGFILE`'." >&2
+ UNRESOLVED=$(awk -F: '/obj:\// {print $NF}' "$LOGFILE" | sort | uniq)
+ if [ -n "$UNRESOLVED" ]; then
+ echo Some addresses could not be resolved into symbols. >&2
+ echo The errors might get suppressed when you install the debuging symbols. >&2
+ if [ -x /usr/bin/dnf ]; then
+ echo Hint: dnf debuginfo-install $UNRESOLVED >&2
+ elif [ -x /usr/bin/debuginfo-install ]; then
+ echo Hint: debuginfo-install $UNRESOLVED >&2
+ else
+ echo Files without debugging symbols: $UNRESOLVED >&2
+ fi
+ fi
fi
exit $RESULT