summaryrefslogtreecommitdiff
path: root/source4/torture/rap
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-05-11 23:50:23 +0200
committerGünther Deschner <gd@samba.org>2011-05-16 12:45:52 +0200
commit74d82faa78e64bdaed68efb9331a7af1c3016c34 (patch)
tree3f32c5434fb013462cae5949e26b72ac4f7563a9 /source4/torture/rap
parentb1948659ad987ce50d048dabc34f03031a243ee5 (diff)
downloadsamba-74d82faa78e64bdaed68efb9331a7af1c3016c34.tar.gz
samba-74d82faa78e64bdaed68efb9331a7af1c3016c34.tar.bz2
samba-74d82faa78e64bdaed68efb9331a7af1c3016c34.zip
s4-smbtorture: add test_netremotetod.
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Mon May 16 12:45:52 CEST 2011 on sn-devel-104
Diffstat (limited to 'source4/torture/rap')
-rw-r--r--source4/torture/rap/rap.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/source4/torture/rap/rap.c b/source4/torture/rap/rap.c
index 5c1c5e196c..ee37158a43 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);