[Libreoffice-commits] .: desktop/scripts

Petr Mladek pmladek at kemper.freedesktop.org
Fri Jun 24 07:20:12 PDT 2011


 desktop/scripts/soffice.sh |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

New commits:
commit 20726f2d95777784d8c969d5d762ad8238803f6d
Author: Petr Mladek <pmladek at suse.cz>
Date:   Fri Jun 24 16:11:53 2011 +0200

    valgrind --log-file=valgrind.log does not work well with --trace-children=yes
    
    redirect output of the stdout and stderr

diff --git a/desktop/scripts/soffice.sh b/desktop/scripts/soffice.sh
index 77767eb..3e0219b 100755
--- a/desktop/scripts/soffice.sh
+++ b/desktop/scripts/soffice.sh
@@ -116,7 +116,7 @@ for arg in $@ $VALGRINDOPT ; do
                     valgrind_skip='--trace-children-skip=*/java'
                 fi
                 # finally set the valgrind check
-                VALGRINDCHECK="valgrind --tool=$VALGRIND --log-file=valgrind.log --trace-children=yes $valgrind_skip --num-callers=50 --error-exitcode=101"
+                VALGRINDCHECK="valgrind --tool=$VALGRIND --trace-children=yes $valgrind_skip --num-callers=50 --error-exitcode=101"
                 checks="c$checks"
                 if [ "$VALGRIND" = "memcheck" ] ; then
                     export G_SLICE=always-malloc
@@ -159,5 +159,11 @@ if [ -n "$GDBTRACECHECK" ] ; then
     exec $GDBTRACECHECK "$sd_prog/soffice.bin" "$@"
 fi
 
+# valgrind --log-file=valgrind.log does not work well with --trace-children=yes
+if [ -n "$VALGRINDCHECK" ] ; then
+    echo "redirecting the standard and the error output to valgrind.log"
+    exec &>valgrind.log
+fi
+
 # oosplash does the rest: forcing pages in, javaldx etc. are
 exec $VALGRINDCHECK $STRACECHECK "$sd_prog/oosplash.bin" "$@"


More information about the Libreoffice-commits mailing list