]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsfd: test: Adapt test cases for pidfs
authorXi Ruoyao <xry111@xry111.site>
Wed, 27 Mar 2024 20:01:02 +0000 (04:01 +0800)
committerXi Ruoyao <xry111@xry111.site>
Wed, 3 Apr 2024 09:28:37 +0000 (17:28 +0800)
commit04db2ba9008e9635286b1aafc8ecd9533a0a91bf
tree6eee23d6f3598483a04be2d581b0e326d5962db7
parentb1a48efd173c7f37d8df39a84eb25b4440335661
lsfd: test: Adapt test cases for pidfs

On Linux >= 6.9, pidfds are from pidfs instead of anonymous inode.
Thus:

STTYPE is REG on Linux >= 6.9, UNKN on Linux < 6.9.

KNAME is pidfd:[inode number] on Linux >= 6.9, anon_inode:[pidfd] on
Linux < 6.9.

And ainode_class test cannot work on Linux >= 6.9, just skip this sub
test if STTYPE is REG.

Signed-off-by: Xi Ruoyao <xry111@xry111.site>
tests/expected/lsfd/column-name-pidfd
tests/expected/lsfd/column-type-pidfd
tests/expected/lsfd/mkfds-pidfd
tests/ts/lsfd/column-ainodeclass
tests/ts/lsfd/column-name
tests/ts/lsfd/column-type
tests/ts/lsfd/mkfds-pidfd