]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: (lsfd) adjust the output for unix stream sockets
authorMasatake YAMATO <yamato@redhat.com>
Sat, 15 Apr 2023 03:07:58 +0000 (12:07 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Sun, 16 Apr 2023 12:08:45 +0000 (21:08 +0900)
commit3a24c299d1deeeb890965465015587d1024d18b1
tree78a7e917a6922327996f764d9a09eee7842affa2
parent89779c1efc8643bdeea4f94c05f6254d5374ecf9
tests: (lsfd) adjust the output for unix stream sockets

lsfd changes the output of NAME column for a unix stream socket
whether the kernel reports it is a "UNIX-STREAM" socket or a "UNIX"
socket. Rather older version of kernels report the socket "UNIX"

For "UNIX", lsfd appends "type=stream" to the NAME column.
This caused a failure in test cases. To avoid the failure,
this change strips "type=stream" from the output before
comparing the output strings and expected strings.

See also the commit log of a60ac11fe0087584f37329b4733edfade3452c64.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
tests/ts/lsfd/lsfd-functions.bash
tests/ts/lsfd/mkfds-unix-in-netns
tests/ts/lsfd/mkfds-unix-stream