From: Karel Zak Date: Tue, 30 May 2017 08:47:06 +0000 (+0200) Subject: tests: check for ps --ppid X-Git-Tag: v2.30~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d25d4534648720b9cc5197b5c8182559f98b1f3d;p=thirdparty%2Futil-linux.git tests: check for ps --ppid Reported-by: Assaf Gordon Signed-off-by: Karel Zak --- diff --git a/tests/ts/misc/flock b/tests/ts/misc/flock index 9a44e155bc..cf3ca53578 100755 --- a/tests/ts/misc/flock +++ b/tests/ts/misc/flock @@ -22,6 +22,9 @@ ts_check_test_command "$TS_CMD_FLOCK" ts_check_prog "ps" ts_check_prog "timeout" +if ! ps --ppid $$ &>/dev/null; then + ts_skip "no ps --ppid" +fi function do_lock { local opts="$1"