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:
Mark Johnston 2014-09-17 03:40:49 +00:00
parent e40a5cd3ec
commit 583b13f588
4 changed files with 9 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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