This bug similar to #3329. I have a problem running tests on solaris 10 using samba 3.0.22. I checked SAMBA_3_0 branch and found that runtests.sh is now named selftest.sh but it inherited at least 2 bugs from its ancestor:
--- selftest.sh 2006-04-21 13:10:51.599041750 +0800
+++ selftest.sh.fixed 2006-04-21 13:44:32.505340500 +0800
@@ -15,7 +15,7 @@
mkdir -p $PREFIX || exit $?
cd $PREFIX || exit $?
if [ -z "$TORTURE_MAXTIME" ]; then
@@ -29,7 +29,7 @@
First, this syntax confeses sh. PREFIX_ABS is still exported latter.
Second, whoami on solaris is in /usr/ucb dir and this dir not in the PATH by default. This should work on any sh-like shell.
All the 'make test' code in 3.0.22 has been replaced in 3.0.23.
I just said that new code already have some "solaris" bugs. I don't want fix this bugs again on update.
Sorry. Read the original report too quickly. Thanks for following up.