]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: (lsfd) adjust the output for unix datagram sockets created by socketpair
authorMasatake YAMATO <yamato@redhat.com>
Sat, 15 Apr 2023 11:50:29 +0000 (20:50 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Sun, 16 Apr 2023 12:08:45 +0000 (21:08 +0900)
commit9a906b8799e5c8dfdcbb5b03c59cb8c118c8ad98
tree6290554c212ad1ae6798f608b8c01c570feda9c9
parent3439871d0aec471a3491956b78d61e3c8b76fa41
tests: (lsfd) adjust the output for unix datagram sockets created by socketpair

Though older kernels report such sockets as "unconnected" via /proc/net/unix,
the newer kernels report them as "connected". The change is introduced in
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=83301b5367a98c17ec0d76c7bc0ccdc3c7e7ad6d

This caused a failure in a test case. To avoid the failure,
this change rewrites "state=unconnected" in the lsfd's output
to "state=connected".

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
tests/ts/lsfd/column-name
tests/ts/lsfd/lsfd-functions.bash