diff options
author | Günther Deschner <gd@samba.org> | 2010-01-22 15:06:50 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-01-25 11:20:06 +0100 |
commit | e16e75a4f0e8887b1cce35384d1157743270439e (patch) | |
tree | 2c4d0f7fe4ca64ba52fd801eb74905cd402ba47d | |
parent | 5dfec4f36b90f0343e6ef4d457f67dccbfee8480 (diff) | |
download | samba-e16e75a4f0e8887b1cce35384d1157743270439e.tar.gz samba-e16e75a4f0e8887b1cce35384d1157743270439e.tar.bz2 samba-e16e75a4f0e8887b1cce35384d1157743270439e.zip |
s4-smbtorture: add test for wbcPingDc to WINBIND-WBCLIENT testsuite.
Volker, please check, you know best how this interface is designed :-)
Guenther
-rw-r--r-- | nsswitch/libwbclient/tests/wbclient.c | 13 |
1 files changed, 12 insertions, 1 deletions
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); |