|
From: Paul F. <pa...@so...> - 2022-05-09 07:50:45
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=a17b8d0198b994567576cd7cd0673ea875ef54a6 commit a17b8d0198b994567576cd7cd0673ea875ef54a6 Author: Paul Floyd <pj...@wa...> Date: Mon May 9 09:47:12 2022 +0200 Add FreeBSD-specific expected for memcheck/tests/gone_abrt_xml The difference is in the si_code. Linux has a value of 0, FreeBSD has 65537. This is correct. From vki-freebsd.h /* * si_code values */ and indeed this signal gets sent by kill() Diff: --- memcheck/tests/Makefile.am | 1 + memcheck/tests/gone_abrt_xml.stderr.exp-freebsd | 63 +++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/memcheck/tests/Makefile.am b/memcheck/tests/Makefile.am index eb6725f8d2..eb9487272d 100644 --- a/memcheck/tests/Makefile.am +++ b/memcheck/tests/Makefile.am @@ -163,6 +163,7 @@ EXTRA_DIST = \ fprw.stderr.exp-freebsd-x86 \ fwrite.stderr.exp fwrite.vgtest fwrite.stderr.exp-kfail \ gone_abrt_xml.vgtest gone_abrt_xml.stderr.exp gone_abrt_xml.stderr.exp-solaris \ + gone_abrt_xml.stderr.exp-freebsd \ holey_buffer_too_small.vgtest holey_buffer_too_small.stdout.exp \ holey_buffer_too_small.stderr.exp \ inits.stderr.exp inits.vgtest \ diff --git a/memcheck/tests/gone_abrt_xml.stderr.exp-freebsd b/memcheck/tests/gone_abrt_xml.stderr.exp-freebsd new file mode 100644 index 0000000000..c97485faf4 --- /dev/null +++ b/memcheck/tests/gone_abrt_xml.stderr.exp-freebsd @@ -0,0 +1,63 @@ +<?xml version="1.0"?> + +<valgrindoutput> + +<protocolversion>4</protocolversion> +<protocoltool>memcheck</protocoltool> + +<preamble> + <line>...</line> + <line>...</line> + <line>...</line> + <line>...</line> +</preamble> + +<pid>...</pid> +<ppid>...</ppid> +<tool>memcheck</tool> + +<args> + <vargv>...</vargv> + <argv> + <exe>./../../gdbserver_tests/gone</exe> + <arg>abort</arg> + </argv> +</args> + +<status> + <state>RUNNING</state> + <time>...</time> +</status> + +starting ... +aborting ... +<fatal_signal> + <tid>...</tid> + <signo>6</signo> + <signame>SIGABRT</signame> + <sicode>65537</sicode> + <stack> + <frame> + <ip>0x........</ip> + <obj>...</obj> + <fn>main</fn> + <dir>...</dir> + <file>gone.c</file> + <line>...</line> + </frame> + </stack> +</fatal_signal> + + +<status> + <state>FINISHED</state> + <time>...</time> +</status> + +<errorcounts> +</errorcounts> + +<suppcounts>...</suppcounts> + +</valgrindoutput> + |