]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (lsfd) skip some cases if NETLINK_SOCK_DIAG for AF_UNIX is not available
authorMasatake YAMATO <yamato@redhat.com>
Sat, 16 Mar 2024 13:20:00 +0000 (22:20 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Fri, 5 Apr 2024 09:31:26 +0000 (18:31 +0900)
Close #2822.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
tests/ts/lsfd/mkfds-socketpair
tests/ts/lsfd/mkfds-unix-stream-requiring-sockdiag

index 38f9279cebe90785fe91a47dd7733c905117ba19..3ef60c79e45b2ac2fb0e5deafc05249060cc950d 100755 (executable)
@@ -20,6 +20,7 @@ TS_DESC="AF_UNIX socket pair created with socketpair(2)"
 . "$TS_TOPDIR"/functions.sh
 ts_init "$*"
 
+. "$TS_SELF/lsfd-functions.bash"
 ts_check_test_command "$TS_CMD_LSFD"
 
 ts_check_test_command "$TS_HELPER_MKFDS"
@@ -28,6 +29,8 @@ ts_check_prog "sed"
 
 ts_cd "$TS_OUTDIR"
 
+lsfd_check_sockdiag "unix"
+
 PID=
 FD0=3
 FD1=4
index c188464b2c83c43d8b8fae8da6f5e48bf9200c4e..6189d0db46ada7e9e1425ef0944782ed21d67000 100755 (executable)
@@ -28,6 +28,8 @@ ts_check_test_command "$TS_HELPER_MKFDS"
 
 ts_cd "$TS_OUTDIR"
 
+lsfd_check_sockdiag "unix"
+
 PID=
 FDS=3
 FDC=4