summaryrefslogtreecommitdiffstats
path: root/tools/regression/usr.bin/pkill/pgrep-S.t
blob: 5ce98e6fa8bc02097665192e4c68022730177804 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# $FreeBSD$

base=`basename $0`

echo "1..2"

name="pgrep -S"
pid=`pgrep -Sx g_event`
if [ "$pid" = "2" ]; then
	echo "ok 1 - $name"
else
	echo "not ok 1 - $name"
fi
pid=`pgrep -x g_event`
if [ "$pid" != "2" ]; then
	echo "ok 2 - $name"
else
	echo "not ok 2 - $name"
fi
OpenPOWER on IntegriCloud