summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>2011-05-17 15:52:28 +0000
committersewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>2011-05-17 15:52:28 +0000
commit439842a54a798ea4f0130d5d26164aa491af1a6e (patch)
tree6587bbba8d8632a2d0fa4c915f9b3903c75eec6b
parent03ca90b84db7071c93455880cf0a14027655cbd9 (diff)
Update expected outputs.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11763 a5019735-40e9-0310-863c-91ae7b9d1cf9
-rw-r--r--exp-sgcheck/tests/bad_percentify.stderr.exp-glibc28-amd641
-rwxr-xr-xexp-sgcheck/tests/filter_stderr2
-rw-r--r--exp-sgcheck/tests/globalerr.stderr.exp-glibc28-amd646
-rw-r--r--exp-sgcheck/tests/hackedbz2.stderr.exp-glibc28-amd643
-rw-r--r--exp-sgcheck/tests/hsg.stderr.exp122
-rw-r--r--exp-sgcheck/tests/preen_invars.stderr.exp-glibc28-amd642
-rw-r--r--exp-sgcheck/tests/stackerr.stderr.exp-glibc28-amd649
7 files changed, 18 insertions, 127 deletions
diff --git a/exp-sgcheck/tests/bad_percentify.stderr.exp-glibc28-amd64 b/exp-sgcheck/tests/bad_percentify.stderr.exp-glibc28-amd64
index eeb4efad..3fbf2b66 100644
--- a/exp-sgcheck/tests/bad_percentify.stderr.exp-glibc28-amd64
+++ b/exp-sgcheck/tests/bad_percentify.stderr.exp-glibc28-amd64
@@ -1,4 +1,3 @@
-exp-sgcheck, a stack and global array overrun detector
Invalid read of size 1
at 0x........: local_strlen (bad_percentify.c:138)
diff --git a/exp-sgcheck/tests/filter_stderr b/exp-sgcheck/tests/filter_stderr
index f315d9e1..174bc943 100755
--- a/exp-sgcheck/tests/filter_stderr
+++ b/exp-sgcheck/tests/filter_stderr
@@ -16,7 +16,7 @@ sed "s/__libc_\(.*\) (.*)$/__libc_\1 (...libc...)/" |
# Remove preambly stuff; also postambly stuff
sed \
--e "/^exp-ptrcheck, a heap, stack and global array overrun detector$/d" \
+-e "/^exp-sgcheck, a stack and global array overrun detector$/d" \
-e "/^NOTE: This is an Experimental-Class Valgrind Tool$/d" \
-e "/^Copyright (C) 2003-201., and GNU GPL'd, by OpenWorks Ltd et al.$/d" \
-e "/^For counts of detected and suppressed errors, rerun with: -v$/d" |
diff --git a/exp-sgcheck/tests/globalerr.stderr.exp-glibc28-amd64 b/exp-sgcheck/tests/globalerr.stderr.exp-glibc28-amd64
index b80c8ca4..3e990378 100644
--- a/exp-sgcheck/tests/globalerr.stderr.exp-glibc28-amd64
+++ b/exp-sgcheck/tests/globalerr.stderr.exp-glibc28-amd64
@@ -2,14 +2,16 @@
Invalid read of size 2
at 0x........: main (globalerr.c:12)
Address 0x........ expected vs actual:
- Expected: global array "a" in object with soname "NONE"
+ Expected: global array "a" of size 14 in object with soname "NONE"
Actual: unknown
+ Actual: is 0 after Expected
Invalid read of size 2
at 0x........: main (globalerr.c:12)
Address 0x........ expected vs actual:
- Expected: global array "b" in object with soname "NONE"
+ Expected: global array "b" of size 14 in object with soname "NONE"
Actual: unknown
+ Actual: is 0 after Expected
ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
diff --git a/exp-sgcheck/tests/hackedbz2.stderr.exp-glibc28-amd64 b/exp-sgcheck/tests/hackedbz2.stderr.exp-glibc28-amd64
index 43c3c0da..6ff30bd1 100644
--- a/exp-sgcheck/tests/hackedbz2.stderr.exp-glibc28-amd64
+++ b/exp-sgcheck/tests/hackedbz2.stderr.exp-glibc28-amd64
@@ -9,8 +9,9 @@ Invalid read of size 1
by 0x........: BZ2_bzBuffToBuffCompress (hackedbz2.c:5638)
by 0x........: main (hackedbz2.c:6484)
Address 0x........ expected vs actual:
- Expected: global array "myprintf_buf" in object with soname "NONE"
+ Expected: global array "myprintf_buf" of size 70 in object with soname "NONE"
Actual: unknown
+ Actual: is 0 after Expected
ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
diff --git a/exp-sgcheck/tests/hsg.stderr.exp b/exp-sgcheck/tests/hsg.stderr.exp
index acbc5a9c..89640708 100644
--- a/exp-sgcheck/tests/hsg.stderr.exp
+++ b/exp-sgcheck/tests/hsg.stderr.exp
@@ -3,7 +3,7 @@
<valgrindoutput>
<protocolversion>4</protocolversion>
-<protocoltool>exp-ptrcheck</protocoltool>
+<protocoltool>exp-sgcheck</protocoltool>
<preamble>
<line>...</line>
@@ -15,7 +15,7 @@
<pid>...</pid>
<ppid>...</ppid>
-<tool>exp-ptrcheck</tool>
+<tool>exp-sgcheck</tool>
<args>
<vargv>...</vargv>
@@ -53,7 +53,7 @@
</frame>
</stack>
<auxwhat>Address 0x........ expected vs actual:</auxwhat>
- <auxwhat>Expected: global array "ga" in object with soname "NONE"</auxwhat>
+ <auxwhat>Expected: global array "ga" of size 200 in object with soname "NONE"</auxwhat>
<auxwhat>Actual: unknown</auxwhat>
</error>
@@ -89,116 +89,10 @@
</frame>
</stack>
<auxwhat>Address 0x........ expected vs actual:</auxwhat>
- <auxwhat>Expected: stack array "la" in frame 1 back from here</auxwhat>
+ <auxwhat>Expected: stack array "la" of size 200 in frame 1 back from here</auxwhat>
<auxwhat>Actual: unknown</auxwhat>
</error>
-<error>
- <unique>0x........</unique>
- <tid>...</tid>
- <kind>Heap</kind>
- <what>Invalid read of size 1</what>
- <stack>
- <frame>
- <ip>0x........</ip>
- <obj>...</obj>
- <fn>do_stupid_malloc_stuff</fn>
- <dir>...</dir>
- <file>hsg.c</file>
- <line>...</line>
- </frame>
- <frame>
- <ip>0x........</ip>
- <obj>...</obj>
- <fn>main</fn>
- <dir>...</dir>
- <file>hsg.c</file>
- <line>...</line>
- </frame>
- </stack>
- <auxwhat>Address 0x........ is 1 bytes before the accessing pointer's</auxwhat>
- <auxwhat>legitimate range, a block of size 100 alloc'd</auxwhat>
- <stack>
- <frame>
- <ip>0x........</ip>
- <obj>...</obj>
- <fn>malloc</fn>
- <dir>...</dir>
- <file>vg_replace_malloc.c</file>
- <line>...</line>
- </frame>
- <frame>
- <ip>0x........</ip>
- <obj>...</obj>
- <fn>do_stupid_malloc_stuff</fn>
- <dir>...</dir>
- <file>hsg.c</file>
- <line>...</line>
- </frame>
- <frame>
- <ip>0x........</ip>
- <obj>...</obj>
- <fn>main</fn>
- <dir>...</dir>
- <file>hsg.c</file>
- <line>...</line>
- </frame>
- </stack>
-</error>
-
-<error>
- <unique>0x........</unique>
- <tid>...</tid>
- <kind>Heap</kind>
- <what>Invalid read of size 1</what>
- <stack>
- <frame>
- <ip>0x........</ip>
- <obj>...</obj>
- <fn>do_stupid_malloc_stuff</fn>
- <dir>...</dir>
- <file>hsg.c</file>
- <line>...</line>
- </frame>
- <frame>
- <ip>0x........</ip>
- <obj>...</obj>
- <fn>main</fn>
- <dir>...</dir>
- <file>hsg.c</file>
- <line>...</line>
- </frame>
- </stack>
- <auxwhat>Address 0x........ is 50 bytes inside the accessing pointer's</auxwhat>
- <auxwhat>once-legitimate range, a block of size 100 free'd</auxwhat>
- <stack>
- <frame>
- <ip>0x........</ip>
- <obj>...</obj>
- <fn>free</fn>
- <dir>...</dir>
- <file>vg_replace_malloc.c</file>
- <line>...</line>
- </frame>
- <frame>
- <ip>0x........</ip>
- <obj>...</obj>
- <fn>do_stupid_malloc_stuff</fn>
- <dir>...</dir>
- <file>hsg.c</file>
- <line>...</line>
- </frame>
- <frame>
- <ip>0x........</ip>
- <obj>...</obj>
- <fn>main</fn>
- <dir>...</dir>
- <file>hsg.c</file>
- <line>...</line>
- </frame>
- </stack>
-</error>
-
<status>
<state>FINISHED</state>
@@ -214,14 +108,6 @@
<count>...</count>
<unique>0x........</unique>
</pair>
- <pair>
- <count>...</count>
- <unique>0x........</unique>
- </pair>
- <pair>
- <count>...</count>
- <unique>0x........</unique>
- </pair>
</errorcounts>
<suppcounts>...</suppcounts>
diff --git a/exp-sgcheck/tests/preen_invars.stderr.exp-glibc28-amd64 b/exp-sgcheck/tests/preen_invars.stderr.exp-glibc28-amd64
index 47e35137..3d08101b 100644
--- a/exp-sgcheck/tests/preen_invars.stderr.exp-glibc28-amd64
+++ b/exp-sgcheck/tests/preen_invars.stderr.exp-glibc28-amd64
@@ -3,7 +3,7 @@ Invalid read of size 1
at 0x........: main (preen_invars.c:22)
Address 0x........ expected vs actual:
Expected: unknown
- Actual: global array "im_a_global_arr" in object with soname "preen_invars_so"
+ Actual: global array "im_a_global_arr" of size 10 in object with soname "preen_invars_so"
ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
diff --git a/exp-sgcheck/tests/stackerr.stderr.exp-glibc28-amd64 b/exp-sgcheck/tests/stackerr.stderr.exp-glibc28-amd64
index 89da7a77..c1b01a82 100644
--- a/exp-sgcheck/tests/stackerr.stderr.exp-glibc28-amd64
+++ b/exp-sgcheck/tests/stackerr.stderr.exp-glibc28-amd64
@@ -4,14 +4,16 @@ Invalid write of size 8
by 0x........: bar (stackerr.c:32)
by 0x........: main (stackerr.c:41)
Address 0x........ expected vs actual:
- Expected: stack array "a" in frame 2 back from here
+ Expected: stack array "a" of size 56 in frame 2 back from here
Actual: unknown
+ Actual: is 0 after Expected
Invalid write of size 8
at 0x........: main (stackerr.c:44)
Address 0x........ expected vs actual:
- Expected: stack array "a" in this frame
+ Expected: stack array "a" of size 56 in this frame
Actual: unknown
+ Actual: is 0 after Expected
Invalid write of size 1
at 0x........: _IO_default_xsputn (in /...libc...)
@@ -20,8 +22,9 @@ Invalid write of size 1
by 0x........: ...
by 0x........: main (stackerr.c:49)
Address 0x........ expected vs actual:
- Expected: stack array "buf" in frame 4 back from here
+ Expected: stack array "buf" of size 8 in frame 4 back from here
Actual: unknown
+ Actual: is 0 after Expected
ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 0 from 0)