BIND 10 trac614, updated. 923a47079606a6ba9368d94007b3c24aaa4ca7e5 [trac614] Functional fixes
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Feb 24 20:04:17 UTC 2011
The branch, trac614 has been updated
via 923a47079606a6ba9368d94007b3c24aaa4ca7e5 (commit)
from ddd04eed61f4945303400569629d66cf685833d2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 923a47079606a6ba9368d94007b3c24aaa4ca7e5
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Thu Feb 24 21:02:39 2011 +0100
[trac614] Functional fixes
* Don't fail on test crash
* Better escaping of IPC in the script
* Run from the tests' dir, so they find their files
-----------------------------------------------------------------------
Summary of changes:
tools/tests_in_valgrind.sh | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
-----------------------------------------------------------------------
diff --git a/tools/tests_in_valgrind.sh b/tools/tests_in_valgrind.sh
index ccbe821..7d680f5 100755
--- a/tools/tests_in_valgrind.sh
+++ b/tools/tests_in_valgrind.sh
@@ -10,11 +10,11 @@ if [ $? = 2 ] ; then
exit 1
fi
-set -ex
+set -e
# Some configuration
# TODO Escape for sed, this might break
-LOGFILE="${VALGRIND_FILE:-valgrind.log}"
+LOGFILE="${VALGRIND_FILE:-`pwd`/valgrind.log}"
FLAGS="${VALGRIND_FLAGS:---read-var-info=yes --leak-check=full}"
FLAGS="$FLAGS --log-file=$LOGFILE.%p"
@@ -28,13 +28,17 @@ eval $(find . -type f -executable -name run_unittests -print | grep -v '\.libs/r
chmod +x "$testname.valgrind"
echo "$testname" >>"$LOGFILE"
echo "===============" >>"$LOGFILE"
- "$testname.valgrind" >&2 &
+ pushd $(dirname "$testname") >/dev/null
+ "./run_unittests.valgrind" >&2 &
PID="$!"
+ set +e
wait "$PID"
CODE="$?"
+ set -e
+ popd >/dev/null
if [ "$CODE" != 0 ] ; then
echo 'FAILED="$FAILED
-'"'$testname'"
+'"$testname"'"'
fi
NAME="$LOGFILE.$PID"
rm "$testname.valgrind"
More information about the bind10-changes
mailing list