git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14bb3f7
)
s4-smbtorture: skip tests when no local driver directory is around.
author
Günther Deschner
<gd@samba.org>
Fri, 23 Apr 2010 11:52:19 +0000
(13:52 +0200)
committer
Günther Deschner
<gd@samba.org>
Fri, 23 Apr 2010 11:52:19 +0000
(13:52 +0200)
Guenther
source4/torture/rpc/spoolss.c
patch
|
blob
|
history
diff --git
a/source4/torture/rpc/spoolss.c
b/source4/torture/rpc/spoolss.c
index 81b63e90c5235fb08836a8cb8a10c4a293944827..3cf1a93d88ee271b596ee329379eca2524eda986 100644
(file)
--- a/
source4/torture/rpc/spoolss.c
+++ b/
source4/torture/rpc/spoolss.c
@@
-7328,6
+7328,10
@@
static bool test_add_driver_arg(struct torture_context *tctx,
fillup_printserver_info(tctx, p, d),
"failed to fillup printserver info");
+ if (!directory_exist(d->local.driver_directory)) {
+ torture_skip(tctx, "Skipping Printer Driver test as no local driver is available");
+ }
+
torture_assert(tctx,
upload_printer_driver(tctx, dcerpc_server_name(p), d),
"failed to upload printer driver");