]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (waitpid) use long options to improve test coverage report
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Thu, 29 Jan 2026 05:58:16 +0000 (00:58 -0500)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Fri, 30 Jan 2026 01:09:57 +0000 (20:09 -0500)
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
tests/ts/misc/waitpid

index 904222c054a70b1ac93dbef9fe14be2bbab6e7a6..ee97e540664a9e95f78ad4f0a9d58a18f1ed5471 100755 (executable)
@@ -39,12 +39,12 @@ echo 4 >> "$TS_OUTPUT"
 ts_finalize_subtest
 
 ts_init_subtest timeout
-"$TS_CMD_WAITPID" -v -t 0.1 1 >> "$TS_OUTPUT" 2>> "$TS_ERRLOG"
+"$TS_CMD_WAITPID" --verbose --timeout 0.1 1 >> "$TS_OUTPUT" 2>> "$TS_ERRLOG"
 echo $? >> "$TS_OUTPUT"
 ts_finalize_subtest
 
 ts_init_subtest exited
-"$TS_CMD_WAITPID" -v -e 2147483647 >> "$TS_OUTPUT" 2>> "$TS_ERRLOG"
+"$TS_CMD_WAITPID" --verbose --exited 2147483647 >> "$TS_OUTPUT" 2>> "$TS_ERRLOG"
 echo $? >> "$TS_ERRLOG"
 ts_finalize_subtest
 
@@ -52,7 +52,7 @@ ts_init_subtest count
 (sleep 0.2; echo 1 >> "$TS_OUTPUT") &
 BG1="$!"
 
-"$TS_CMD_WAITPID" -c 1 1 "$BG1" >> "$TS_OUTPUT" 2>> "$TS_ERRLOG"
+"$TS_CMD_WAITPID" --count 1 1 "$BG1" >> "$TS_OUTPUT" 2>> "$TS_ERRLOG"
 echo $? >> "$TS_ERRLOG"
 ts_finalize_subtest