summaryrefslogtreecommitdiff
path: root/tools/ci/scripts
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-06 22:15:39 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-07 01:03:11 +0300
commite04f2a41836aac22820b89a822b362da3f3a6f83 (patch)
treee08ca71d010f70a88418d4e8b2315a645e5c61cb /tools/ci/scripts
parent030beaba34912a9249b9219b43c7bdc1359859e6 (diff)
downloadmv-e04f2a41836aac22820b89a822b362da3f3a6f83.tar.gz
mv-e04f2a41836aac22820b89a822b362da3f3a6f83.tar.bz2
mv-e04f2a41836aac22820b89a822b362da3f3a6f83.tar.xz
mv-e04f2a41836aac22820b89a822b362da3f3a6f83.zip
Check for uninitialised variables in valgrind ci tests.
Diffstat (limited to 'tools/ci/scripts')
-rwxr-xr-xtools/ci/scripts/init.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/ci/scripts/init.sh b/tools/ci/scripts/init.sh
index c82d248d9..944d4d338 100755
--- a/tools/ci/scripts/init.sh
+++ b/tools/ci/scripts/init.sh
@@ -206,6 +206,13 @@ function run_make_check {
echo "valgrind error"
exit 1
fi
+ export DATA=$(grep -A 2 "uninitialised" valg.log|grep ".cpp")
+ if [ "$DATA" != "" ];
+ then
+ cat valg.log
+ echo "valgrind error"
+ exit 1
+ fi
cat valg.log
echo "valgrind check"
}