]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Illumos regtest: add an expected for none/tests/fdleak_socketpair_xml.stderr
authorPaul Floyd <pjfloyd@wanadoo.fr>
Mon, 21 Apr 2025 18:44:31 +0000 (20:44 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Mon, 21 Apr 2025 19:05:15 +0000 (21:05 +0200)
illumos socketpair doesn't get the next two fds (3 and 4), instead it
gets 4 and 5. That looks like it's because this is done in two steps in libc.
so_socket gets called twice returnning fds 3 and 4 the so_socketpair takes
those and does some rebinding(?) resulting in fds 4 and 5.

none/tests/Makefile.am
none/tests/fdleak_socketpair_xml.stderr.exp-illumos [new file with mode: 0644]

index 37c94515d6f87b402811e49f2be423838669b576..8f9018f46a7817288b44c4f6cc927e430d31b19a 100644 (file)
@@ -165,6 +165,7 @@ EXTRA_DIST = \
        fdleak_pipe_xml.stderr.exp fdleak_pipe_xml.vgtest \
        fdleak_socketpair.stderr.exp fdleak_socketpair.vgtest \
        fdleak_socketpair_xml.stderr.exp fdleak_socketpair_xml.vgtest \
+               fdleak_socketpair_xml.stderr.exp-illumos \
        floored.stderr.exp floored.stdout.exp floored.vgtest \
        fork.stderr.exp fork.stdout.exp fork.vgtest \
        fucomip.stderr.exp fucomip.vgtest \
diff --git a/none/tests/fdleak_socketpair_xml.stderr.exp-illumos b/none/tests/fdleak_socketpair_xml.stderr.exp-illumos
new file mode 100644 (file)
index 0000000..f01a804
--- /dev/null
@@ -0,0 +1,83 @@
+<?xml version="1.0"?>
+
+<valgrindoutput>
+
+<protocolversion>5</protocolversion>
+<protocoltool>none</protocoltool>
+
+<preamble>
+  <line>Nulgrind, the minimal Valgrind tool</line>
+  <line>Copyright...</line>
+  <line>Using Valgrind...</line>
+  <line>Command: ./fdleak_socketpair</line>
+</preamble>
+
+<pid>...</pid>
+<ppid>...</ppid>
+<tool>none</tool>
+
+<args>
+  <vargv>
+    <exe>...</exe>
+    <arg>--command-line-only=yes</arg>
+    <arg>--memcheck:leak-check=no</arg>
+    <arg>--tool=none</arg>
+    <arg>--track-fds=yes</arg>
+    <arg>--xml=yes</arg>
+    <arg>--xml-fd=2</arg>
+  </vargv>
+  <argv>
+    <exe>...</exe>
+  </argv>
+</args>
+
+<status>
+  <state>RUNNING</state>
+  <time>...</time>
+</status>
+
+
+<status>
+  <state>FINISHED</state>
+  <time>...</time>
+</status>
+
+<error>
+  <unique>0x........</unique>
+  <tid>...</tid>
+  <kind>FdNotClosed</kind>
+  <fd>5</fd>
+  <what>...</what>
+  <stack>
+    <frame>
+      <ip>0x........</ip>
+      <obj>...</obj>
+      <fn>main</fn>
+      <dir>...</dir>
+      <file>fdleak_socketpair.c</file>
+      <line>13</line>
+    </frame>
+  </stack>
+</error>
+
+<error>
+  <unique>0x........</unique>
+  <tid>...</tid>
+  <kind>FdNotClosed</kind>
+  <fd>4</fd>
+  <what>...</what>
+  <stack>
+    <frame>
+      <ip>0x........</ip>
+      <obj>...</obj>
+      <fn>main</fn>
+      <dir>...</dir>
+      <file>fdleak_socketpair.c</file>
+      <line>13</line>
+    </frame>
+  </stack>
+</error>
+
+
+</valgrindoutput>
+