2 Unix SMB/CIFS implementation.
3 test suite for spoolss rpc operations as performed by various win versions
5 Copyright (C) Kai Blin 2007
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
22 #include "torture/rpc/torture_rpc.h"
23 #include "librpc/gen_ndr/ndr_spoolss_c.h"
24 #include "librpc/gen_ndr/ndr_misc.h"
25 #include "param/param.h"
27 struct test_spoolss_win_context
{
29 uint32_t printer_count
;
30 union spoolss_PrinterInfo
*printer_info
;
31 union spoolss_PrinterInfo
*current_info
;
34 const char **printer_keys
;
36 bool printer_has_driver
;
39 /* This is a convenience function for all OpenPrinterEx calls */
40 static bool test_OpenPrinterEx(struct torture_context
*tctx
,
41 struct dcerpc_binding_handle
*b
,
42 struct policy_handle
*handle
,
43 const char *printer_name
,
47 struct spoolss_OpenPrinterEx op
;
48 struct spoolss_UserLevel1 ul_1
;
50 torture_comment(tctx
, "Opening printer '%s'\n", printer_name
);
52 op
.in
.printername
= talloc_strdup(tctx
, printer_name
);
53 op
.in
.datatype
= NULL
;
54 op
.in
.devmode_ctr
.devmode
= NULL
;
55 op
.in
.access_mask
= access_mask
;
56 op
.in
.userlevel_ctr
.level
= 1;
57 op
.in
.userlevel_ctr
.user_info
.level1
= &ul_1
;
58 op
.out
.handle
= handle
;
61 ul_1
.client
= "\\clientname";
62 ul_1
.user
= "username";
66 ul_1
.processor
= 4567;
68 status
= dcerpc_spoolss_OpenPrinterEx_r(b
, tctx
, &op
);
69 torture_assert_ntstatus_ok(tctx
, status
, "OpenPrinterEx failed");
70 torture_assert_werr_ok(tctx
, op
.out
.result
, "OpenPrinterEx failed");
75 static bool test_OpenPrinterAsAdmin(struct torture_context
*tctx
,
76 struct dcerpc_binding_handle
*b
,
77 const char *printername
)
80 struct spoolss_OpenPrinterEx op
;
81 struct spoolss_ClosePrinter cp
;
82 struct spoolss_UserLevel1 ul_1
;
83 struct policy_handle handle
;
86 ul_1
.client
= "\\clientname";
87 ul_1
.user
= "username";
91 ul_1
.processor
= 4567;
93 op
.in
.printername
= talloc_strdup(tctx
, printername
);
94 op
.in
.datatype
= NULL
;
95 op
.in
.devmode_ctr
.devmode
= NULL
;
96 op
.in
.access_mask
= SERVER_ALL_ACCESS
;
97 op
.in
.userlevel_ctr
.level
= 1;
98 op
.in
.userlevel_ctr
.user_info
.level1
= &ul_1
;
99 op
.out
.handle
= &handle
;
101 cp
.in
.handle
= &handle
;
102 cp
.out
.handle
= &handle
;
104 torture_comment(tctx
, "Testing OpenPrinterEx(%s) with admin rights\n",
107 status
= dcerpc_spoolss_OpenPrinterEx_r(b
, tctx
, &op
);
109 if (NT_STATUS_IS_OK(status
) && W_ERROR_IS_OK(op
.out
.result
)) {
110 status
= dcerpc_spoolss_ClosePrinter_r(b
, tctx
, &cp
);
111 torture_assert_ntstatus_ok(tctx
, status
, "ClosePrinter failed");
119 /* This replicates the opening sequence of OpenPrinterEx calls XP does */
120 static bool test_OpenPrinterSequence(struct torture_context
*tctx
,
121 struct dcerpc_pipe
*p
,
122 struct policy_handle
*handle
)
125 char *printername
= talloc_asprintf(tctx
, "\\\\%s",
126 dcerpc_server_name(p
));
127 struct dcerpc_binding_handle
*b
= p
->binding_handle
;
129 /* First, see if we can open the printer read_only */
130 ret
= test_OpenPrinterEx(tctx
, b
, handle
, printername
, 0);
131 torture_assert(tctx
, ret
== true, "OpenPrinterEx failed.");
133 ret
= test_ClosePrinter(tctx
, b
, handle
);
134 torture_assert(tctx
, ret
, "ClosePrinter failed");
136 /* Now let's see if we have admin rights to it. */
137 ret
= test_OpenPrinterAsAdmin(tctx
, b
, printername
);
138 torture_assert(tctx
, ret
== true,
139 "OpenPrinterEx as admin failed unexpectedly.");
141 ret
= test_OpenPrinterEx(tctx
, b
, handle
, printername
, SERVER_EXECUTE
);
142 torture_assert(tctx
, ret
== true, "OpenPrinterEx failed.");
147 static bool test_GetPrinterData(struct torture_context
*tctx
,
148 struct dcerpc_binding_handle
*b
,
149 struct policy_handle
*handle
,
150 const char *value_name
,
151 WERROR expected_werr
,
152 uint32_t expected_value
)
155 struct spoolss_GetPrinterData gpd
;
157 enum winreg_Type type
;
158 uint8_t *data
= talloc_zero_array(tctx
, uint8_t, 4);
160 torture_comment(tctx
, "Testing GetPrinterData(%s).\n", value_name
);
161 gpd
.in
.handle
= handle
;
162 gpd
.in
.value_name
= value_name
;
164 gpd
.out
.needed
= &needed
;
165 gpd
.out
.type
= &type
;
168 status
= dcerpc_spoolss_GetPrinterData_r(b
, tctx
, &gpd
);
169 torture_assert_ntstatus_ok(tctx
, status
, "GetPrinterData failed.");
170 torture_assert_werr_equal(tctx
, gpd
.out
.result
, expected_werr
,
171 "GetPrinterData did not return expected error value.");
173 if (W_ERROR_IS_OK(expected_werr
)) {
174 uint32_t value
= IVAL(data
, 0);
175 torture_assert_int_equal(tctx
, value
,
177 talloc_asprintf(tctx
, "GetPrinterData for %s did not return expected value.", value_name
));
182 static bool test_EnumPrinters(struct torture_context
*tctx
,
183 struct dcerpc_pipe
*p
,
184 struct test_spoolss_win_context
*ctx
,
185 uint32_t initial_blob_size
)
188 struct spoolss_EnumPrinters ep
;
189 DATA_BLOB blob
= data_blob_talloc_zero(ctx
, initial_blob_size
);
192 union spoolss_PrinterInfo
*info
;
193 struct dcerpc_binding_handle
*b
= p
->binding_handle
;
195 ep
.in
.flags
= PRINTER_ENUM_NAME
;
196 ep
.in
.server
= talloc_asprintf(tctx
, "\\\\%s", dcerpc_server_name(p
));
198 ep
.in
.buffer
= &blob
;
199 ep
.in
.offered
= initial_blob_size
;
200 ep
.out
.needed
= &needed
;
201 ep
.out
.count
= &count
;
204 status
= dcerpc_spoolss_EnumPrinters_r(b
, ctx
, &ep
);
205 torture_assert_ntstatus_ok(tctx
, status
, "EnumPrinters failed.");
207 if (W_ERROR_EQUAL(ep
.out
.result
, WERR_INSUFFICIENT_BUFFER
)) {
208 blob
= data_blob_talloc_zero(ctx
, needed
);
209 ep
.in
.buffer
= &blob
;
210 ep
.in
.offered
= needed
;
211 status
= dcerpc_spoolss_EnumPrinters_r(b
, ctx
, &ep
);
212 torture_assert_ntstatus_ok(tctx
, status
,"EnumPrinters failed.");
215 torture_assert_werr_ok(tctx
, ep
.out
.result
, "EnumPrinters failed.");
217 ctx
->printer_count
= count
;
218 ctx
->printer_info
= info
;
220 torture_comment(tctx
, "Found %d printer(s).\n", ctx
->printer_count
);
225 static bool test_GetPrinter(struct torture_context
*tctx
,
226 struct dcerpc_binding_handle
*b
,
227 struct policy_handle
*handle
,
228 struct test_spoolss_win_context
*ctx
,
230 uint32_t initial_blob_size
)
233 struct spoolss_GetPrinter gp
;
234 DATA_BLOB blob
= data_blob_talloc_zero(ctx
, initial_blob_size
);
237 torture_comment(tctx
, "Test GetPrinter level %d\n", level
);
239 gp
.in
.handle
= handle
;
241 gp
.in
.buffer
= (initial_blob_size
== 0)?NULL
:&blob
;
242 gp
.in
.offered
= initial_blob_size
;
243 gp
.out
.needed
= &needed
;
245 status
= dcerpc_spoolss_GetPrinter_r(b
, tctx
, &gp
);
246 torture_assert_ntstatus_ok(tctx
, status
, "GetPrinter failed");
248 if (W_ERROR_EQUAL(gp
.out
.result
, WERR_INSUFFICIENT_BUFFER
)) {
249 blob
= data_blob_talloc_zero(ctx
, needed
);
250 gp
.in
.buffer
= &blob
;
251 gp
.in
.offered
= needed
;
252 status
= dcerpc_spoolss_GetPrinter_r(b
, tctx
, &gp
);
253 torture_assert_ntstatus_ok(tctx
, status
, "GetPrinter failed");
256 torture_assert_werr_ok(tctx
, gp
.out
.result
, "GetPrinter failed");
258 ctx
->current_info
= gp
.out
.info
;
260 if (level
== 2 && gp
.out
.info
) {
261 ctx
->printer_has_driver
= gp
.out
.info
->info2
.drivername
&&
262 strlen(gp
.out
.info
->info2
.drivername
);
268 static bool test_EnumJobs(struct torture_context
*tctx
,
269 struct dcerpc_binding_handle
*b
,
270 struct policy_handle
*handle
)
273 struct spoolss_EnumJobs ej
;
274 DATA_BLOB blob
= data_blob_talloc_zero(tctx
, 1024);
277 union spoolss_JobInfo
*info
;
279 torture_comment(tctx
, "Test EnumJobs\n");
281 ej
.in
.handle
= handle
;
283 ej
.in
.buffer
= &blob
;
284 ej
.in
.offered
= 1024;
285 ej
.out
.needed
= &needed
;
286 ej
.out
.count
= &count
;
289 status
= dcerpc_spoolss_EnumJobs_r(b
, tctx
, &ej
);
290 torture_assert_ntstatus_ok(tctx
, status
, "EnumJobs failed");
291 if (W_ERROR_EQUAL(ej
.out
.result
, WERR_INSUFFICIENT_BUFFER
)) {
292 blob
= data_blob_talloc_zero(tctx
, needed
);
293 ej
.in
.offered
= needed
;
294 ej
.in
.buffer
= &blob
;
295 status
= dcerpc_spoolss_EnumJobs_r(b
, tctx
, &ej
);
296 torture_assert_ntstatus_ok(tctx
, status
, "EnumJobs failed");
298 torture_assert_werr_ok(tctx
, ej
.out
.result
, "EnumJobs failed");
303 static bool test_GetPrinterDriver2(struct torture_context
*tctx
,
304 struct dcerpc_binding_handle
*b
,
305 struct test_spoolss_win_context
*ctx
,
306 struct policy_handle
*handle
)
309 struct spoolss_GetPrinterDriver2 gpd2
;
310 DATA_BLOB blob
= data_blob_talloc_zero(tctx
, 87424);
312 uint32_t server_major_version
;
313 uint32_t server_minor_version
;
315 torture_comment(tctx
, "Testing GetPrinterDriver2\n");
317 gpd2
.in
.handle
= handle
;
318 gpd2
.in
.architecture
= "Windows NT x86";
320 gpd2
.in
.buffer
= &blob
;
321 gpd2
.in
.offered
= 87424;
322 gpd2
.in
.client_major_version
= 3;
323 gpd2
.in
.client_minor_version
= 0;
324 gpd2
.out
.needed
= &needed
;
325 gpd2
.out
.server_major_version
= &server_major_version
;
326 gpd2
.out
.server_minor_version
= &server_minor_version
;
328 status
= dcerpc_spoolss_GetPrinterDriver2_r(b
, tctx
, &gpd2
);
329 torture_assert_ntstatus_ok(tctx
, status
, "GetPrinterDriver2 failed");
331 if (ctx
->printer_has_driver
) {
332 torture_assert_werr_ok(tctx
, gpd2
.out
.result
,
333 "GetPrinterDriver2 failed.");
339 static bool test_EnumForms(struct torture_context
*tctx
,
340 struct dcerpc_binding_handle
*b
,
341 struct policy_handle
*handle
,
342 uint32_t initial_blob_size
)
345 struct spoolss_EnumForms ef
;
346 DATA_BLOB blob
= data_blob_talloc_zero(tctx
, initial_blob_size
);
349 union spoolss_FormInfo
*info
;
351 torture_comment(tctx
, "Testing EnumForms\n");
353 ef
.in
.handle
= handle
;
355 ef
.in
.buffer
= (initial_blob_size
== 0)?NULL
:&blob
;
356 ef
.in
.offered
= initial_blob_size
;
357 ef
.out
.needed
= &needed
;
358 ef
.out
.count
= &count
;
361 status
= dcerpc_spoolss_EnumForms_r(b
, tctx
, &ef
);
362 torture_assert_ntstatus_ok(tctx
, status
, "EnumForms failed");
364 if (W_ERROR_EQUAL(ef
.out
.result
, WERR_INSUFFICIENT_BUFFER
)) {
365 blob
= data_blob_talloc_zero(tctx
, needed
);
366 ef
.in
.buffer
= &blob
;
367 ef
.in
.offered
= needed
;
368 status
= dcerpc_spoolss_EnumForms_r(b
, tctx
, &ef
);
369 torture_assert_ntstatus_ok(tctx
, status
, "EnumForms failed");
372 torture_assert_werr_ok(tctx
, ef
.out
.result
, "EnumForms failed");
377 static bool test_EnumPrinterKey(struct torture_context
*tctx
,
378 struct dcerpc_binding_handle
*b
,
379 struct policy_handle
*handle
,
381 struct test_spoolss_win_context
*ctx
)
384 struct spoolss_EnumPrinterKey epk
;
386 union spoolss_KeyNames key_buffer
;
389 torture_comment(tctx
, "Testing EnumPrinterKey(%s)\n", key
);
391 epk
.in
.handle
= handle
;
392 epk
.in
.key_name
= talloc_strdup(tctx
, key
);
394 epk
.out
.needed
= &needed
;
395 epk
.out
.key_buffer
= &key_buffer
;
396 epk
.out
._ndr_size
= &_ndr_size
;
398 status
= dcerpc_spoolss_EnumPrinterKey_r(b
, tctx
, &epk
);
399 torture_assert_ntstatus_ok(tctx
, status
, "EnumPrinterKey failed");
401 if (W_ERROR_EQUAL(epk
.out
.result
, WERR_MORE_DATA
)) {
402 epk
.in
.offered
= needed
;
403 status
= dcerpc_spoolss_EnumPrinterKey_r(b
, tctx
, &epk
);
404 torture_assert_ntstatus_ok(tctx
, status
,
405 "EnumPrinterKey failed");
408 torture_assert_werr_ok(tctx
, epk
.out
.result
, "EnumPrinterKey failed");
410 ctx
->printer_keys
= key_buffer
.string_array
;
415 static bool test_EnumPrinterDataEx(struct torture_context
*tctx
,
416 struct dcerpc_binding_handle
*b
,
417 struct policy_handle
*handle
,
419 uint32_t initial_blob_size
,
420 WERROR expected_error
)
423 struct spoolss_EnumPrinterDataEx epde
;
424 struct spoolss_PrinterEnumValues
*info
;
428 torture_comment(tctx
, "Testing EnumPrinterDataEx(%s)\n", key
);
430 epde
.in
.handle
= handle
;
431 epde
.in
.key_name
= talloc_strdup(tctx
, key
);
433 epde
.out
.needed
= &needed
;
434 epde
.out
.count
= &count
;
435 epde
.out
.info
= &info
;
437 status
= dcerpc_spoolss_EnumPrinterDataEx_r(b
, tctx
, &epde
);
438 torture_assert_ntstatus_ok(tctx
, status
, "EnumPrinterDataEx failed.");
439 if (W_ERROR_EQUAL(epde
.out
.result
, WERR_MORE_DATA
)) {
440 epde
.in
.offered
= needed
;
441 status
= dcerpc_spoolss_EnumPrinterDataEx_r(b
, tctx
, &epde
);
442 torture_assert_ntstatus_ok(tctx
, status
,
443 "EnumPrinterDataEx failed.");
446 torture_assert_werr_equal(tctx
, epde
.out
.result
, expected_error
,
447 "EnumPrinterDataEx failed.");
452 static bool test_WinXP(struct torture_context
*tctx
, struct dcerpc_pipe
*p
)
455 struct test_spoolss_win_context
*ctx
, *tmp_ctx
;
456 struct policy_handle handle01
, handle02
, handle03
, handle04
;
457 /* Sometimes a handle stays unused. In order to make this clear in the
458 * code, the unused_handle structures are used for that. */
459 struct policy_handle unused_handle1
, unused_handle2
;
462 struct dcerpc_binding_handle
*b
= p
->binding_handle
;
464 ctx
= talloc_zero(tctx
, struct test_spoolss_win_context
);
465 tmp_ctx
= talloc_zero(tctx
, struct test_spoolss_win_context
);
467 ret
&= test_OpenPrinterSequence(tctx
, p
, &handle01
);
468 ret
&= test_GetPrinterData(tctx
, b
, &handle01
,"UISingleJobStatusString",
469 WERR_INVALID_PARAM
, 0);
470 torture_comment(tctx
, "Skip RemoteFindNextPrinterChangeNotifyEx test\n");
472 server_name
= talloc_asprintf(ctx
, "\\\\%s", dcerpc_server_name(p
));
473 ret
&= test_OpenPrinterEx(tctx
, b
, &unused_handle1
, server_name
, 0);
475 ret
&= test_EnumPrinters(tctx
, p
, ctx
, 1024);
477 ret
&= test_OpenPrinterEx(tctx
, b
, &handle02
, server_name
, 0);
478 ret
&= test_GetPrinterData(tctx
, b
, &handle02
, "MajorVersion", WERR_OK
,
480 ret
&= test_ClosePrinter(tctx
, b
, &handle02
);
482 /* If no printers were found, skip all tests that need a printer */
483 if (ctx
->printer_count
== 0) {
487 ret
&= test_OpenPrinterEx(tctx
, b
, &handle02
,
488 ctx
->printer_info
[0].info2
.printername
,
490 ret
&= test_GetPrinter(tctx
, b
, &handle02
, ctx
, 2, 0);
492 torture_assert_str_equal(tctx
, ctx
->current_info
->info2
.printername
,
493 ctx
->printer_info
[0].info2
.printername
,
494 "GetPrinter returned unexpected printername");
495 /*FIXME: Test more components of the PrinterInfo2 struct */
497 ret
&= test_OpenPrinterEx(tctx
, b
, &handle03
,
498 ctx
->printer_info
[0].info2
.printername
, 0);
499 ret
&= test_GetPrinter(tctx
, b
, &handle03
, ctx
, 0, 1164);
500 ret
&= test_GetPrinter(tctx
, b
, &handle03
, ctx
, 2, 0);
502 ret
&= test_OpenPrinterEx(tctx
, b
, &handle04
,
503 ctx
->printer_info
[0].info2
.printername
, 0);
504 ret
&= test_GetPrinter(tctx
, b
, &handle04
, ctx
, 2, 0);
505 ret
&= test_ClosePrinter(tctx
, b
, &handle04
);
507 ret
&= test_OpenPrinterEx(tctx
, b
, &handle04
,
508 ctx
->printer_info
[0].info2
.printername
, 0);
509 ret
&= test_GetPrinter(tctx
, b
, &handle04
, ctx
, 2, 4096);
510 ret
&= test_ClosePrinter(tctx
, b
, &handle04
);
512 ret
&= test_OpenPrinterAsAdmin(tctx
, b
,
513 ctx
->printer_info
[0].info2
.printername
);
515 ret
&= test_OpenPrinterEx(tctx
, b
, &handle04
,
516 ctx
->printer_info
[0].info2
.printername
, PRINTER_READ
);
517 ret
&= test_GetPrinterData(tctx
, b
, &handle04
,"UISingleJobStatusString",
519 torture_comment(tctx
, "Skip RemoteFindNextPrinterChangeNotifyEx test\n");
521 ret
&= test_OpenPrinterEx(tctx
, b
, &unused_handle2
,
522 ctx
->printer_info
[0].info2
.printername
, 0);
524 ret
&= test_EnumJobs(tctx
, b
, &handle04
);
525 ret
&= test_GetPrinter(tctx
, b
, &handle04
, ctx
, 2, 4096);
527 ret
&= test_ClosePrinter(tctx
, b
, &unused_handle2
);
528 ret
&= test_ClosePrinter(tctx
, b
, &handle04
);
530 ret
&= test_EnumPrinters(tctx
, p
, ctx
, 1556);
531 ret
&= test_GetPrinterDriver2(tctx
, b
, ctx
, &handle03
);
532 ret
&= test_EnumForms(tctx
, b
, &handle03
, 0);
534 ret
&= test_EnumPrinterKey(tctx
, b
, &handle03
, "", ctx
);
536 for (i
=0; ctx
->printer_keys
&& ctx
->printer_keys
[i
] != NULL
; i
++) {
538 ret
&= test_EnumPrinterKey(tctx
, b
, &handle03
,
539 ctx
->printer_keys
[i
],
541 ret
&= test_EnumPrinterDataEx(tctx
, b
, &handle03
,
542 ctx
->printer_keys
[i
], 0,
546 ret
&= test_EnumPrinterDataEx(tctx
, b
, &handle03
, "", 0,
549 ret
&= test_GetPrinter(tctx
, b
, &handle03
, tmp_ctx
, 2, 0);
551 ret
&= test_OpenPrinterEx(tctx
, b
, &unused_handle2
,
552 ctx
->printer_info
[0].info2
.printername
, 0);
553 ret
&= test_ClosePrinter(tctx
, b
, &unused_handle2
);
555 ret
&= test_GetPrinter(tctx
, b
, &handle03
, tmp_ctx
, 2, 2556);
557 ret
&= test_OpenPrinterEx(tctx
, b
, &unused_handle2
,
558 ctx
->printer_info
[0].info2
.printername
, 0);
559 ret
&= test_ClosePrinter(tctx
, b
, &unused_handle2
);
561 ret
&= test_OpenPrinterEx(tctx
, b
, &unused_handle2
,
562 ctx
->printer_info
[0].info2
.printername
, 0);
563 ret
&= test_ClosePrinter(tctx
, b
, &unused_handle2
);
565 ret
&= test_GetPrinter(tctx
, b
, &handle03
, tmp_ctx
, 7, 0);
567 ret
&= test_OpenPrinterEx(tctx
, b
, &unused_handle2
,
568 ctx
->printer_info
[0].info2
.printername
, 0);
569 ret
&= test_ClosePrinter(tctx
, b
, &unused_handle2
);
571 ret
&= test_ClosePrinter(tctx
, b
, &handle03
);
573 ret
&= test_OpenPrinterEx(tctx
, b
, &unused_handle2
,
574 ctx
->printer_info
[0].info2
.printername
, 0);
575 ret
&= test_ClosePrinter(tctx
, b
, &unused_handle2
);
577 ret
&= test_OpenPrinterEx(tctx
, b
, &handle03
, server_name
, 0);
578 ret
&= test_GetPrinterData(tctx
, b
, &handle03
, "W3SvcInstalled",
580 ret
&= test_ClosePrinter(tctx
, b
, &handle03
);
582 ret
&= test_ClosePrinter(tctx
, b
, &unused_handle1
);
583 ret
&= test_ClosePrinter(tctx
, b
, &handle02
);
585 ret
&= test_OpenPrinterEx(tctx
, b
, &handle02
,
586 ctx
->printer_info
[0].info2
.sharename
, 0);
587 ret
&= test_GetPrinter(tctx
, b
, &handle02
, tmp_ctx
, 2, 0);
588 ret
&= test_ClosePrinter(tctx
, b
, &handle02
);
591 ret
&= test_ClosePrinter(tctx
, b
, &handle01
);
593 talloc_free(tmp_ctx
);
598 struct torture_suite
*torture_rpc_spoolss_win(TALLOC_CTX
*mem_ctx
)
600 struct torture_suite
*suite
= torture_suite_create(mem_ctx
, "spoolss.win");
602 struct torture_rpc_tcase
*tcase
= torture_suite_add_rpc_iface_tcase(suite
,
603 "win", &ndr_table_spoolss
);
605 torture_rpc_tcase_add_test(tcase
, "testWinXP", test_WinXP
);