1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3: Some build farm machines do not have /bin/true

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Apr 25 14:35:42 CEST 2011 on sn-devel-104
This commit is contained in:
Volker Lendecke 2011-04-25 13:40:15 +02:00 committed by Volker Lendecke
parent b61c38fde6
commit 40e0079bae

View File

@ -3,15 +3,18 @@
incdir=`dirname $0`/../../../testprogs/blackbox
. $incdir/subunit.sh
TESTPROG=$BINDIR/pthreadpooltest
if [ ! -x $BINDIR/pthreadpooltest ] ; then
TESTPROG=/bin/true
# Some machines don't have /bin/true, simulate it
cat >$BINDIR/pthreadpooltest <<EOF
#!/bin/sh
exit 0
EOF
chmod +x $BINDIR/pthreadpooltest
fi
failed=0
testit "pthreadpool" $VALGRIND $TESTPROG ||
testit "pthreadpool" $VALGRIND $BINDIR/pthreadpooltest ||
failed=`expr $failed + 1`
testok $0 $failed