xref: /freebsd/bin/pkill/tests/pgrep-l_test.sh (revision 2da066ef6d85d3f7cd8aaec14369d66254836536)
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