xref: /freebsd/bin/pkill/tests/pkill-_p_test.sh (revision 4d846d260e2b9a3d4d0a701462568268cbfe7a5b)
1#!/bin/sh
2# $FreeBSD$
3
4base=`basename $0`
5
6echo "1..1"
7
8name="pkill -P <ppid>"
9ppid=$$
10sleep=$(pwd)/sleep.txt
11ln -sf /bin/sleep $sleep
12$sleep 5 &
13sleep 0.3
14pkill -f -P $ppid $sleep
15ec=$?
16case $ec in
170)
18	echo "ok - $name"
19	;;
20*)
21	echo "not ok - $name"
22	;;
23esac
24
25rm -f $sleep
26