From: Masatake YAMATO Date: Thu, 14 Oct 2021 13:55:28 +0000 (+0900) Subject: lsfd: (test) test POS column X-Git-Tag: v2.38-rc1~144^2~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fd207562340e3d323a67145239c8aba240a0e95f;p=thirdparty%2Futil-linux.git lsfd: (test) test POS column Signed-off-by: Masatake YAMATO --- diff --git a/tests/expected/lsfd/mkfds-ro-regular-file b/tests/expected/lsfd/mkfds-ro-regular-file index 024e8060e9..bcbfc352ee 100644 --- a/tests/expected/lsfd/mkfds-ro-regular-file +++ b/tests/expected/lsfd/mkfds-ro-regular-file @@ -1,5 +1,5 @@ - 3 r-- REG /etc/passwd -ASSOC,MODE,TYPE,NAME: 0 + 3 r-- REG /etc/passwd 1 +ASSOC,MODE,TYPE,NAME,POS: 0 PID[RUN]: 0 PID[STR]: 0 INODE[RUN]: 0 diff --git a/tests/ts/lsfd/mkfds-ro-regular-file b/tests/ts/lsfd/mkfds-ro-regular-file index 5c4a843c5d..3340b0e106 100755 --- a/tests/ts/lsfd/mkfds-ro-regular-file +++ b/tests/ts/lsfd/mkfds-ro-regular-file @@ -33,11 +33,11 @@ FD=3 EXPR= { - coproc MKFDS { "$TS_HELPER_MKFDS" ro-regular-file $FD; } + coproc MKFDS { "$TS_HELPER_MKFDS" ro-regular-file $FD offset=1; } if read -u ${MKFDS[0]} PID; then EXPR='(PID == '"${PID}"') and (FD == '"$FD"')' - ${TS_CMD_LSFD} -n -o ASSOC,MODE,TYPE,NAME -Q "${EXPR}" - echo 'ASSOC,MODE,TYPE,NAME': $? + ${TS_CMD_LSFD} -n -o ASSOC,MODE,TYPE,NAME,POS -Q "${EXPR}" + echo 'ASSOC,MODE,TYPE,NAME,POS': $? LSFD_PID=$(${TS_CMD_LSFD} --raw -n -o PID -Q "${EXPR}") echo 'PID[RUN]:' $?