]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Solaris regtest: fix build of none socket_close
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 30 Mar 2024 14:16:55 +0000 (15:16 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 30 Mar 2024 14:16:55 +0000 (15:16 +0100)
Also add to filter_fdleak

none/tests/Makefile.am
none/tests/filter_fdleak

index a37bb27257a6e87fdfbe388946f69204f657d905..185993f204bb0a6aff05ac0d670feed871f874f0 100644 (file)
@@ -323,6 +323,7 @@ fdleak_cmsg_LDADD   = -lsocket -lnsl
 fdleak_ipv4_LDADD      = -lsocket -lnsl
 fdleak_creat_LDADD     = -lsocket -lnsl
 fdleak_socketpair_LDADD        = -lsocket -lnsl
+socket_close_LDADD     = -lsocket -lnsl
 else
 fcntl_setown_LDADD     = $(AL_LDFLAGS)
 fdleak_cmsg_CFLAGS     = $(AM_CFLAGS)
@@ -330,6 +331,7 @@ fdleak_cmsg_LDADD   = $(AM_LDFLAGS)
 fdleak_ipv4_LDADD      = $(AM_LDFLAGS)
 fdleak_creat_LDADD     = $(AM_LDFLAGS)
 fdleak_socketpair_LDADD        = $(AM_LDFLAGS)
+socket_close_LDADD     = $(AM_LDFLAGS)
 endif
 floored_LDADD          = -lm
 ifunc_CFLAGS           = $(AM_CFLAGS) -Wno-unused-function
index 76a6b5b13944ea0c6fdb96e43b8efa7ca5522a38..ae8afb8241c6c723e2dcd39ea20d9cf5be4cef08 100755 (executable)
@@ -18,6 +18,12 @@ perl -p -e 's/127.0.0.1:[0-9]*/127.0.0.1:.../g' |
 # FreeBSD specific fdleak filters
 perl -p -e 's/ _close / close /;s/ _openat / creat /;s/internet/AF_INET socket 4: 127.0.0.1:... <-> 127.0.0.1:.../' |
 
+# Solaris specific fdleak filters
+perl -p -e 's/ __close / close /' |
+sed '/ _so_socket /d;' |
+awk '/ socket /{sub(/ by /, " at "); print; next}{print}' |
+awk '/ at .* _syscall6 /{getline; getline; sub(/ by /, " at "); print; next}{print}' |
+
 # Stack traces showing where fds were created have lots of variations:
 # different numbers of entries, line numbers or not depending on whether
 # libc debug info is present, 'main' vs. '(below main)', etc.