Fix a number of typos and programming errors in the userland CTF tests. It
seems that they would only pass by chance on illumos; on FreeBSD, they still fail since userland CTF is not yet supported. MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
e40a5cd3ec
commit
583b13f588
@ -29,6 +29,7 @@ dtrace=$1
|
||||
t="season_8_mountain_of_madness_t"
|
||||
pid=$$
|
||||
|
||||
rc=`$dtrace -n "BEGIN{ trace(pid$pid`$t)0); }"`
|
||||
$dtrace -n "BEGIN{ trace(pid$pid\`$t)0); }"
|
||||
rc=$?
|
||||
|
||||
exit $rc
|
||||
|
@ -30,6 +30,7 @@ dtrace=$1
|
||||
t="season_8_mountain_of_madness_t"
|
||||
pid=$$
|
||||
|
||||
rc=`$dtrace -n "BEGIN{ trace(pid`$t)0); }"` -p $pid
|
||||
$dtrace -n "BEGIN{ trace(pid$pid\`$t)0); }" -p $pid
|
||||
rc=$?
|
||||
|
||||
exit $rc
|
||||
|
@ -25,7 +25,7 @@ if [ $# != 1 ]; then
|
||||
fi
|
||||
|
||||
dtrace=$1
|
||||
t="season_7_lisa_the_vegetrian_t *"
|
||||
t="season_7_lisa_the_vegetarian_t *"
|
||||
exe="tst.aouttype.exe"
|
||||
|
||||
elfdump -c "./$exe" | grep -Fq 'sh_name: .SUNW_ctf'
|
||||
@ -37,7 +37,8 @@ fi
|
||||
./$exe &
|
||||
pid=$!
|
||||
|
||||
rc=`$dtrace -n "BEGIN{ trace((pid$pid\`$t)0); exit(0); }"`
|
||||
$dtrace -n "BEGIN{ trace((pid$pid\`$t)0); exit(0); }"
|
||||
rc=$?
|
||||
|
||||
kill -9 $pid
|
||||
|
||||
|
@ -38,7 +38,8 @@ fi
|
||||
./$exe &
|
||||
pid=$!
|
||||
|
||||
rc=`$dtrace -n "BEGIN{ trace((pid$pid\`$t)0); exit(0); }"`
|
||||
$dtrace -n "BEGIN{ trace((pid$pid\`$t)0); exit(0); }"
|
||||
rc=$?
|
||||
|
||||
kill -9 $pid
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user