more randomconfig testsuite fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2010-05-10 11:00:11 +02:00
parent e3d90a90d4
commit 8e3aff0ce0
6 changed files with 60 additions and 52 deletions

View File

@@ -54,14 +54,14 @@ test x"$ECHO" != x"" || {
optional()
{
option=`echo ":$OPTIONFLAGS:" | grep ":$1:"`
# Not set?
if [ -z "$1" ] || [ -z "$OPTIONFLAGS" ] || [ ${#option} -ne 0 ]
then
SKIP=
return
fi
SKIP=1
SKIP=
while test "$1"; do
if test x"${OPTIONFLAGS/*:$1:*/y}" != x"y"; then
SKIP=1
return
fi
shift
done
}
# The testing function