[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Fix xenstore testsuite for valgrind 3.0 and latest Debian glibc.
# HG changeset patch # User cl349@xxxxxxxxxxxxxxxxxxxx # Node ID c51562192ef6b1d94f6de7aba1daafe8353064a8 # Parent 00071566ed1e407cefa6fc3f579ee5c7ef90aba5 Fix xenstore testsuite for valgrind 3.0 and latest Debian glibc. Debian upgrade revealed two problems: glibc spits out a warning on every binary, and valgrind 3.0 gratuitously changed --logfile-fd to --log-fd, so don't use it. Signed-off-by: Rusty Russell <rusty@xxxxxxxxxxxxxxx> Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx> diff -r 00071566ed1e -r c51562192ef6 tools/xenstore/testsuite/test.sh --- a/tools/xenstore/testsuite/test.sh Tue Aug 23 19:52:13 2005 +++ b/tools/xenstore/testsuite/test.sh Tue Aug 23 19:57:32 2005 @@ -8,7 +8,7 @@ rm -rf $XENSTORED_ROOTDIR mkdir $XENSTORED_ROOTDIR if [ $VALGRIND -eq 1 ]; then - valgrind -q --logfile-fd=3 ./xenstored_test --output-pid --trace-file=testsuite/tmp/trace --no-fork 3>testsuite/tmp/vgout > /tmp/pid 2> testsuite/tmp/xenstored_errors & + valgrind --suppressions=testsuite/vg-suppressions -q ./xenstored_test --output-pid --trace-file=testsuite/tmp/trace --no-fork > /tmp/pid 2> testsuite/tmp/xenstored_errors & while [ ! -s /tmp/pid ]; do sleep 0; done PID=`cat /tmp/pid` rm /tmp/pid @@ -17,10 +17,10 @@ PID=`./xenstored_test --output-pid --trace-file=testsuite/tmp/trace` fi if ./xs_test $2 $1; then - if [ -s testsuite/tmp/vgout ]; then + if [ -s testsuite/tmp/xenstored_errors ]; then kill $PID - echo VALGRIND errors: - cat testsuite/tmp/vgout + echo Errors: + cat testsuite/tmp/xenstored_errors return 1 fi echo shutdown | ./xs_test _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |