]> git.ipfire.org Git - thirdparty/util-linux.git/commit
test: (test_mkfds) add -O option for describing output values
authorMasatake YAMATO <yamato@redhat.com>
Fri, 20 Sep 2024 21:11:36 +0000 (06:11 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Fri, 20 Sep 2024 21:20:23 +0000 (06:20 +0900)
commit3ac22836ce7a24788c0d0ee3ac8f35cb78056650
tree93ef7324c040cd02ec4e2bda62ab6a8629b1361e
parentd985dfec9275945aa24f0603cc61faac556ae855
test: (test_mkfds) add -O option for describing output values

Some factories prints some extra values in addition to the pid of
the process opening file descriptors.

Unlike parameters, test_mkfds didn't provide the way to explain
the extra values. The new option --output-values/-O provies it.

Example output:

  $ ./test_mkfds -O eventfd
  NTH DESCRIPTION
  0 the pid owning the file descriptor(s)
  1 the pid of child process

  $ ./test_mkfds -O cdev-tun
  NTH DESCRIPTION
  0 the pid owning the file descriptor(s)
  1 the network device name

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
tests/helpers/test_mkfds.c