xref: /freebsd/bin/pkill/tests/pgrep-l_test.sh (revision a64729f5077d77e13b9497cb33ecb3c82e606ee8)
1#!/bin/sh
2
3base=`basename $0`
4
5echo "1..1"
6
7name="pgrep -l"
8sleep=$(pwd)/sleep.txt
9ln -sf /bin/sleep $sleep
10$sleep 5 &
11sleep 0.3
12pid=$!
13if [ "$pid $sleep 5" = "`pgrep -f -l $sleep`" ]; then
14	echo "ok - $name"
15else
16	echo "not ok - $name"
17fi
18kill $pid
19rm -f $sleep
20