]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - bin/pkill/tests/pkill-F_test.sh
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / bin / pkill / tests / pkill-F_test.sh
1 #!/bin/sh
2 # $FreeBSD$
3
4 base=`basename $0`
5
6 echo "1..1"
7
8 name="pkill -F <pidfile>"
9 pidfile=$(pwd)/pidfile.txt
10 sleep=$(pwd)/sleep.txt
11 ln -sf /bin/sleep $sleep
12 $sleep 5 &
13 sleep 0.3
14 echo $! > $pidfile
15 pkill -f -F $pidfile $sleep
16 ec=$?
17 case $ec in
18 0)
19         echo "ok - $name"
20         ;;
21 *)
22         echo "not ok - $name"
23         ;;
24 esac
25
26 rm -f $pidfile
27 rm -f $sleep