]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add FreeBSD-specific expected for memcheck/tests/gone_abrt_xml
authorPaul Floyd <pjfloyd@wanadoo.fr>
Mon, 9 May 2022 07:47:12 +0000 (09:47 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Mon, 9 May 2022 07:47:12 +0000 (09:47 +0200)
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()

memcheck/tests/Makefile.am
memcheck/tests/gone_abrt_xml.stderr.exp-freebsd [new file with mode: 0644]

index eb6725f8d274a63a5bc06e9fdc4dee8a4534770f..eb9487272d360ec31077fa40b4be0151d4ff139f 100644 (file)
@@ -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 (file)
index 0000000..c97485f
--- /dev/null
@@ -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>
+