]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: check for ps --ppid
authorKarel Zak <kzak@redhat.com>
Tue, 30 May 2017 08:47:06 +0000 (10:47 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 30 May 2017 09:19:22 +0000 (11:19 +0200)
Reported-by: Assaf Gordon <assafgordon@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/misc/flock

index 9a44e155bcb7ea93c6a2a777e65ba3e0a86de7c7..cf3ca535784c6c201bc10e4b1b07d025170c29ed 100755 (executable)
@@ -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"