From e16e75a4f0e8887b1cce35384d1157743270439e Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 22 Jan 2010 15:06:50 +0100 Subject: s4-smbtorture: add test for wbcPingDc to WINBIND-WBCLIENT testsuite. Volker, please check, you know best how this interface is designed :-) Guenther --- nsswitch/libwbclient/tests/wbclient.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/nsswitch/libwbclient/tests/wbclient.c b/nsswitch/libwbclient/tests/wbclient.c index 23fad63025..e0b436962e 100644 --- a/nsswitch/libwbclient/tests/wbclient.c +++ b/nsswitch/libwbclient/tests/wbclient.c @@ -1,7 +1,7 @@ /* Unix SMB/CIFS implementation. SMB torture tester - Copyright (C) Guenther Deschner 2009 + Copyright (C) Guenther Deschner 2009-2010 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -43,6 +43,16 @@ static bool test_wbc_ping(struct torture_context *tctx) return true; } +static bool test_wbc_pingdc(struct torture_context *tctx) +{ + torture_assert_wbc_equal(tctx, wbcPingDc("random_string", NULL), WBC_ERR_NOT_IMPLEMENTED, + "wbcPingDc failed"); + torture_assert_wbc_ok(tctx, wbcPingDc(NULL, NULL), + "wbcPingDc failed"); + + return true; +} + static bool test_wbc_library_details(struct torture_context *tctx) { struct wbcLibraryDetails *details; @@ -310,6 +320,7 @@ struct torture_suite *torture_wbclient(void) struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "WBCLIENT"); torture_suite_add_simple_test(suite, "wbcPing", test_wbc_ping); + torture_suite_add_simple_test(suite, "wbcPingDc", test_wbc_pingdc); torture_suite_add_simple_test(suite, "wbcLibraryDetails", test_wbc_library_details); torture_suite_add_simple_test(suite, "wbcInterfaceDetails", test_wbc_interface_details); torture_suite_add_simple_test(suite, "wbcSidTypeString", test_wbc_sidtypestring); -- cgit