summaryrefslogtreecommitdiff
path: root/tests/net.expected
diff options
context:
space:
mode:
authorEugene Syromyatnikov <evgsyr@gmail.com>2018-02-13 02:03:16 +0100
committerDmitry V. Levin <ldv@altlinux.org>2018-02-13 03:12:29 +0000
commit46c6c7d7762c0a65fd09f5893caa4ed76ba0fb64 (patch)
tree31a7adeb4d8956c71a0c1dd5d7d6fab0e2791d4e /tests/net.expected
parent66c1739d86b9e2cbe3d4189852a618e839dd3573 (diff)
downloadstrace-46c6c7d7762c0a65fd09f5893caa4ed76ba0fb64.tar.gz
tests: add compatibility layer for accept call
Recent glibc (since version 2.26) uses accept4 syscall for implementing accept call on sparc. Unfortunately, it's impossible to simply fall back on raw syscall as it had not been wired up until linux commit v4.4-rc8~4^2~1. * tests/accept_compat.h: New file. * tests/Makefile.am (EXTRA_DIST): Add it. * tests/net-y-unix.c: Include accept_compat.h, use do_accept() instead of accept() calls. * tests/net-yy-inet.c: Likewise. * tests/net-yy-unix.c: Likewise. * tests/net.expected: Allow accept4.
Diffstat (limited to 'tests/net.expected')
-rw-r--r--tests/net.expected2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/net.expected b/tests/net.expected
index 80dd07016..e33e29662 100644
--- a/tests/net.expected
+++ b/tests/net.expected
@@ -3,5 +3,5 @@
[1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +bind\(0, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_path="net-local-stream"\}, 19\) += 0
[1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +listen\(0, 5\) += 0
[1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +getsockname\(0, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_path="net-local-stream"\}, \[19\]\) += 0
-[1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +accept\(0, \{sa_family=AF_(LOCAL|UNIX|FILE)\}, \[19->2\]\) += 1
+[1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +accept4?\(0, \{sa_family=AF_(LOCAL|UNIX|FILE)\}, \[19->2\](, 0)?\) += 1
[1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +connect\(1, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_path="net-local-stream"\}, 19\) += 0