From 7d2702cc92696417c2d6d9afd828040aceec4474 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Wed, 20 Jul 2005 03:03:44 +0000 Subject: [PATCH] Fix broken tests. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4207 --- memcheck/tests/filter_xml | 4 +++- memcheck/tests/xml1.stderr.exp | 13 ++++++++----- memcheck/tests/xml1.stderr.exp2 | 13 ++++++++----- memcheck/tests/xml1.stderr.exp64 | 13 ++++++++----- none/tests/cmdline1.stdout.exp | 4 +++- none/tests/cmdline2.stdout.exp | 4 +++- 6 files changed, 33 insertions(+), 18 deletions(-) diff --git a/memcheck/tests/filter_xml b/memcheck/tests/filter_xml index 8a857c6146..f9c5669859 100755 --- a/memcheck/tests/filter_xml +++ b/memcheck/tests/filter_xml @@ -8,7 +8,9 @@ sed "s/.*<\/obj>/...<\/obj>/" | sed "s/.*<\/line>/...<\/line>/" | sed "s/.*<\/dir>/...<\/dir>/" | sed "s/.*<\/count>/...<\/count>/" | -perl -0 -p -e "s/.*<\/suppcounts>/...<\/suppcounts>/s" +perl -0 -p -e "s/.*<\/suppcounts>/...<\/suppcounts>/s" | +perl -p -e "s/.*<\/when>/...<\/when>/s" | +perl -0 -p -e "s/.*<\/vargv>/...<\/vargv>/s" # Collected wisdom re Perl magic incantation: # diff --git a/memcheck/tests/xml1.stderr.exp b/memcheck/tests/xml1.stderr.exp index 0c8208dc07..65e78c3b39 100644 --- a/memcheck/tests/xml1.stderr.exp +++ b/memcheck/tests/xml1.stderr.exp @@ -17,11 +17,14 @@ ... memcheck - - ./xml1 - + + ... + + ./xml1 + + -RUNNING + RUNNING ... 0x........ @@ -366,7 +369,7 @@ ... 0x........ -FINISHED + FINISHED ... ... diff --git a/memcheck/tests/xml1.stderr.exp2 b/memcheck/tests/xml1.stderr.exp2 index 4b7ee398d2..271e8d35dc 100644 --- a/memcheck/tests/xml1.stderr.exp2 +++ b/memcheck/tests/xml1.stderr.exp2 @@ -17,11 +17,14 @@ ... memcheck - - ./xml1 - + + ... + + ./xml1 + + -RUNNING + RUNNING ... 0x........ @@ -363,7 +366,7 @@ ... 0x........ -FINISHED + FINISHED ... ... diff --git a/memcheck/tests/xml1.stderr.exp64 b/memcheck/tests/xml1.stderr.exp64 index 6904c50e4b..92f400106e 100644 --- a/memcheck/tests/xml1.stderr.exp64 +++ b/memcheck/tests/xml1.stderr.exp64 @@ -17,11 +17,14 @@ ... memcheck - - ./xml1 - + + ... + + ./xml1 + + -RUNNING + RUNNING ... 0x........ @@ -371,7 +374,7 @@ ... 0x........ -FINISHED + FINISHED ... ... diff --git a/none/tests/cmdline1.stdout.exp b/none/tests/cmdline1.stdout.exp index 438013ced5..8805661c25 100644 --- a/none/tests/cmdline1.stdout.exp +++ b/none/tests/cmdline1.stdout.exp @@ -7,7 +7,6 @@ usage: valgrind --tool= [options] prog-and-args --version show version -q --quiet run silently; only print error msgs -v --verbose be more verbose, incl counts of errors - --xml=yes all output is in XML (Memcheck only) --trace-children=no|yes Valgrind-ise child processes? [no] --track-fds=no|yes track open file descriptors? [no] --time-stamp=no|yes add timestamps to log messages? [no] @@ -22,9 +21,12 @@ usage: valgrind --tool= [options] prog-and-args none, for code found in stacks, or all [stack] user options for Valgrind tools that report errors: + --xml=yes all output is in XML (Memcheck only) + --xml-user-comment=STR copy STR verbatim to XML output --log-fd= log messages to file descriptor [2=stderr] --log-file= log messages to .pid --log-file-exactly= log messages to + --log-file-qualifier= incorporate $VAR in logfile name [none] --log-socket=ipaddr:port log messages to socket ipaddr:port --demangle=no|yes automatically demangle C++ names? [yes] --num-callers= show callers in stack traces [12] diff --git a/none/tests/cmdline2.stdout.exp b/none/tests/cmdline2.stdout.exp index ebcf250594..7c7d9e421a 100644 --- a/none/tests/cmdline2.stdout.exp +++ b/none/tests/cmdline2.stdout.exp @@ -7,7 +7,6 @@ usage: valgrind --tool= [options] prog-and-args --version show version -q --quiet run silently; only print error msgs -v --verbose be more verbose, incl counts of errors - --xml=yes all output is in XML (Memcheck only) --trace-children=no|yes Valgrind-ise child processes? [no] --track-fds=no|yes track open file descriptors? [no] --time-stamp=no|yes add timestamps to log messages? [no] @@ -22,9 +21,12 @@ usage: valgrind --tool= [options] prog-and-args none, for code found in stacks, or all [stack] user options for Valgrind tools that report errors: + --xml=yes all output is in XML (Memcheck only) + --xml-user-comment=STR copy STR verbatim to XML output --log-fd= log messages to file descriptor [2=stderr] --log-file= log messages to .pid --log-file-exactly= log messages to + --log-file-qualifier= incorporate $VAR in logfile name [none] --log-socket=ipaddr:port log messages to socket ipaddr:port --demangle=no|yes automatically demangle C++ names? [yes] --num-callers= show callers in stack traces [12] -- 2.47.3