1#!/bin/sh 2# $FreeBSD$ 3 4base=`basename $0` 5 6echo "1..1" 7 8name="pkill -i" 9sleep=$(pwd)/sleep.txt 10usleep="${sleep}XXX" 11touch $usleep 12lsleep="${sleep}xxx" 13ln -sf /bin/sleep $usleep 14$usleep 5 & 15sleep 0.3 16pkill -f -i $lsleep 17ec=$? 18case $ec in 190) 20 echo "ok - $name" 21 ;; 22*) 23 echo "not ok - $name" 24 ;; 25esac 26rm -f $sleep $usleep 27