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