From 74d82faa78e64bdaed68efb9331a7af1c3016c34 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Wed, 11 May 2011 23:50:23 +0200 Subject: [PATCH] s4-smbtorture: add test_netremotetod. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Guenther Autobuild-User: Günther Deschner Autobuild-Date: Mon May 16 12:45:52 CEST 2011 on sn-devel-104 --- source4/selftest/knownfail | 1 + source4/torture/rap/rap.c | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/source4/selftest/knownfail b/source4/selftest/knownfail index cdd7a2d3069..d3c3f4ee6da 100644 --- a/source4/selftest/knownfail +++ b/source4/selftest/knownfail @@ -41,6 +41,7 @@ samba4.base.charset.*.Testing partial surrogate samba4.rap.*netservergetinfo samba4.rap.*netsessionenum samba4.rap.*netsessiongetinfo +samba4.rap.*netremotetod samba4.smb2.persistent.handles1 samba4.winbind.struct.*.show_sequence # Not yet working in winbind samba4.winbind.struct.*.getpwent # Not yet working in winbind diff --git a/source4/torture/rap/rap.c b/source4/torture/rap/rap.c index 5c1c5e196c6..ee37158a431 100644 --- a/source4/torture/rap/rap.c +++ b/source4/torture/rap/rap.c @@ -206,6 +206,21 @@ static bool test_netsessiongetinfo(struct torture_context *tctx, return true; } +static bool test_netremotetod(struct torture_context *tctx, + struct smbcli_state *cli) +{ + struct rap_NetRemoteTOD r; + + r.in.bufsize = 8192; + + torture_assert_ntstatus_ok(tctx, + smbcli_rap_netremotetod(cli->tree, tctx, &r), + "smbcli_rap_netremotetod failed"); + torture_assert_werr_ok(tctx, W_ERROR(r.out.status), + "smbcli_rap_netremotetod failed"); + + return true; +} bool torture_rap_scan(struct torture_context *torture, struct smbcli_state *cli) { @@ -246,6 +261,8 @@ NTSTATUS torture_rap_init(void) test_netsessionenum); torture_suite_add_1smb_test(suite_basic, "netsessiongetinfo", test_netsessiongetinfo); + torture_suite_add_1smb_test(suite_basic, "netremotetod", + test_netremotetod); torture_suite_add_1smb_test(suite, "scan", torture_rap_scan); -- 2.11.4.GIT