diff options
author | Günther Deschner <gd@samba.org> | 2010-02-16 17:42:58 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-02-17 11:29:37 +0100 |
commit | b32c1e2975bc00ce94e8d02460d98ca3277cf5b6 (patch) | |
tree | df33882ba44b2e5744e118e971c6749a4de29af6 /source4/torture | |
parent | ff5bfb9708962e2d30d3edc2c8a186ccd5dfddd1 (diff) | |
download | samba-b32c1e2975bc00ce94e8d02460d98ca3277cf5b6.tar.gz samba-b32c1e2975bc00ce94e8d02460d98ca3277cf5b6.tar.bz2 samba-b32c1e2975bc00ce94e8d02460d98ca3277cf5b6.zip |
s4-smbtorture: also test level 2 sets for devicemodes and see if they persist.
Guenther
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/rpc/spoolss.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index 53b1fe4e82..5a603e5412 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -1973,6 +1973,27 @@ static bool test_PrinterInfo_DevModes(struct torture_context *tctx, torture_assert(tctx, test_devicemode_equal(tctx, devmode, devmode2), ""); + + /* set devicemode level 2 and see if it persists */ + + devmode->copies = 39; + devmode->formname = talloc_strdup(tctx, "Letter"); + + torture_assert(tctx, test_devmode_set_level(tctx, p, handle, 8, devmode), ""); + + torture_assert(tctx, test_GetPrinter_level(tctx, p, handle, 8, &info), ""); + + devmode2 = info.info8.devmode; + + torture_assert(tctx, test_devicemode_equal(tctx, devmode, devmode2), ""); + + torture_assert(tctx, test_GetPrinter_level(tctx, p, handle, 2, &info), ""); + + devmode2 = info.info2.devmode; + + torture_assert(tctx, test_devicemode_equal(tctx, devmode, devmode2), ""); + + return true; } |