From: Masatake YAMATO Date: Thu, 3 Aug 2023 14:52:15 +0000 (+0900) Subject: tests: (test_mkfds::mkfds-multiplexing) dump /proc/$pid/syscall for debugging X-Git-Tag: v2.40-rc1~244^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9869c4d375fa38e621aa07094175a4f5659eb046;p=thirdparty%2Futil-linux.git tests: (test_mkfds::mkfds-multiplexing) dump /proc/$pid/syscall for debugging --- diff --git a/tests/ts/lsfd/mkfds-multiplexing b/tests/ts/lsfd/mkfds-multiplexing index d734ba9442..86753f5574 100755 --- a/tests/ts/lsfd/mkfds-multiplexing +++ b/tests/ts/lsfd/mkfds-multiplexing @@ -52,6 +52,11 @@ for multiplexer in pselect6 select poll ppoll; do "${TS_CMD_LSFD}" -n -o ASSOC,XMODE -p "${PID}" -Q '(FD >= 10) && (FD <= 22)' echo "[$multiplexer] ASSOC,XMODE: $?" + # For debugging + if [[ $("${TS_CMD_LSFD}" -n -o XMODE -p "${PID}" -Q '(FD == 10)') != "r----m" ]]; then + cat /proc/"${PID}"/syscall + fi + echo DONE >&"${MKFDS[1]}" fi } > "$TS_OUTPUT" 2>&1