summaryrefslogtreecommitdiff
path: root/source4/torture/rap
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-06-16 11:04:12 +0200
committerGünther Deschner <gd@samba.org>2010-06-16 12:15:24 +0200
commit1a86532fce51ec2f46b1e8abb1c1838e6793b76b (patch)
tree665c2be65495f1c4a22f7b2038a34468b890beb6 /source4/torture/rap
parent1f1c04010a55e67d8dc2110276eed4cf2a8a0afa (diff)
downloadsamba-1a86532fce51ec2f46b1e8abb1c1838e6793b76b.tar.gz
samba-1a86532fce51ec2f46b1e8abb1c1838e6793b76b.tar.bz2
samba-1a86532fce51ec2f46b1e8abb1c1838e6793b76b.zip
s4-smbtorture: test smbcli_rap_netprintqgetinfo() with "" printqname.
Guenther
Diffstat (limited to 'source4/torture/rap')
-rw-r--r--source4/torture/rap/printing.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/torture/rap/printing.c b/source4/torture/rap/printing.c
index a143017c42..4f10606b59 100644
--- a/source4/torture/rap/printing.c
+++ b/source4/torture/rap/printing.c
@@ -120,6 +120,14 @@ static bool test_netprintqgetinfo(struct torture_context *tctx,
int i, p;
uint16_t levels[] = { 0, 1, 2, 3, 4, 5 };
+ r.in.level = 0;
+ r.in.bufsize = 0;
+ r.in.PrintQueueName = "";
+
+ torture_assert_ntstatus_ok(tctx,
+ smbcli_rap_netprintqgetinfo(cli->tree, tctx, &r),
+ "smbcli_rap_netprintqgetinfo failed");
+
r_enum.in.level = 5;
r_enum.in.bufsize = 8192;