xref: /freebsd/bin/pkill/tests/pkill-_p_test.sh (revision 3c4ba5f55438f7afd4f4b0b56f88f2bb505fd6a6)
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