diff options
author | Günther Deschner <gd@samba.org> | 2009-03-06 12:24:23 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-03-06 14:28:22 +0100 |
commit | 8bc7bb77bebcac9b10f2718f879d92813fe275da (patch) | |
tree | 5e003eb77245479316f06ec8bb07b6c8cec4fa2d /source4/torture/rpc | |
parent | 2fcc921237bbaac2de331ee53828ab72394a6186 (diff) | |
download | samba-8bc7bb77bebcac9b10f2718f879d92813fe275da.tar.gz samba-8bc7bb77bebcac9b10f2718f879d92813fe275da.tar.bz2 samba-8bc7bb77bebcac9b10f2718f879d92813fe275da.zip |
s4-smbtorture: exit early in test_EnumPorts when no port info has been returned.
Guenther
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r-- | source4/torture/rpc/spoolss.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index 7e8461ef83..64b698a402 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -139,6 +139,8 @@ static bool test_EnumPorts(struct torture_context *tctx, torture_assert_werr_ok(tctx, r.out.result, "EnumPorts failed"); + torture_assert(tctx, info, "EnumPorts returned no info"); + ctx->port_count[level] = count; ctx->ports[level] = info; } |