]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (test_mkfds::mkfds-multiplexing) dump /proc/$pid/syscall for debugging
authorMasatake YAMATO <yamato@redhat.com>
Thu, 3 Aug 2023 14:52:15 +0000 (23:52 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Mon, 11 Sep 2023 22:17:07 +0000 (07:17 +0900)
tests/ts/lsfd/mkfds-multiplexing

index d734ba9442b96261f85f441d483c338d7e892fe2..86753f5574cb7b9a8a1596501a57e20fc7d6c4c5 100755 (executable)
@@ -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