diff options
author | Petr Mladek <pmladek@suse.cz> | 2011-06-24 16:11:53 +0200 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2011-06-24 16:12:59 +0200 |
commit | 94afbcdd14bf94bd9c93e0925a8b655b7223712d (patch) | |
tree | 327bd7739f540163a835ad4f480006813c1b6351 /desktop | |
parent | a5ecfca964c1a42baeff8167890aca658a1e3c06 (diff) |
valgrind --log-file=valgrind.log does not work well with --trace-children=yes
redirect output of the stdout and stderr
Diffstat (limited to 'desktop')
-rwxr-xr-x | desktop/scripts/soffice.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/desktop/scripts/soffice.sh b/desktop/scripts/soffice.sh index b0123fdc30f5..a97f68d80808 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" "$@" |