1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

nsswitch:tests: Remove unused functions

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Joseph Sutton 2023-04-11 14:20:01 +12:00 committed by Andreas Schneider
parent 833cefe8ee
commit 60c501b387

View File

@ -26,40 +26,6 @@ samba_tool="$VALGRIND $samba4bindir/samba-tool"
ldbmodify=$(system_or_builddir_binary ldbmodify "${BINDIR}")
testfail()
{
name="$1"
shift
cmdline="$*"
echo "test: $name"
$cmdline
status=$?
if [ x$status = x0 ]; then
echo "failure: $name"
else
echo "success: $name"
fi
return $status
}
knownfail()
{
name="$1"
shift
cmdline="$*"
echo "test: $name"
$cmdline
status=$?
if [ x$status = x0 ]; then
echo "failure: $name [unexpected success]"
status=1
else
echo "knownfail: $name"
status=0
fi
return $status
}
# Create new testing account
testit "user add" $PYTHON $samba_tool user create --given-name="rfc2307" \
--surname="Tester" --initial="UT" rfc2307_test_user testp@ssw0Rd \