From: Joseph Sutton Date: Tue, 11 Apr 2023 02:20:01 +0000 (+1200) Subject: nsswitch:tests: Remove unused functions X-Git-Tag: talloc-2.4.1~935 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60c501b387d479fa9c653151dee4b2feebcb04ac;p=thirdparty%2Fsamba.git nsswitch:tests: Remove unused functions Signed-off-by: Joseph Sutton Reviewed-by: Andreas Schneider --- diff --git a/nsswitch/tests/test_rfc2307_mapping.sh b/nsswitch/tests/test_rfc2307_mapping.sh index a700791bde3..440a924b090 100755 --- a/nsswitch/tests/test_rfc2307_mapping.sh +++ b/nsswitch/tests/test_rfc2307_mapping.sh @@ -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 \