summaryrefslogtreecommitdiff
path: root/testprogs/win32/spoolss
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-01-11 12:37:45 +0100
committerGünther Deschner <gd@samba.org>2010-01-11 12:43:07 +0100
commit9a1b298e3d32252dd83fd2146b578e5150a06c7b (patch)
tree50ef493ec10a3977ef918db8f696179e8d4e8686 /testprogs/win32/spoolss
parent3e7b7bfd27fad1680f9f331e5b8d736bc3733e05 (diff)
downloadsamba-9a1b298e3d32252dd83fd2146b578e5150a06c7b.tar.gz
samba-9a1b298e3d32252dd83fd2146b578e5150a06c7b.tar.bz2
samba-9a1b298e3d32252dd83fd2146b578e5150a06c7b.zip
testprogs: test each printer, do not abort after first failure.
Guenther
Diffstat (limited to 'testprogs/win32/spoolss')
-rw-r--r--testprogs/win32/spoolss/spoolss.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/testprogs/win32/spoolss/spoolss.c b/testprogs/win32/spoolss/spoolss.c
index 718fb379ea..16f45b02f3 100644
--- a/testprogs/win32/spoolss/spoolss.c
+++ b/testprogs/win32/spoolss/spoolss.c
@@ -599,6 +599,7 @@ static BOOL test_EachPrinter(struct torture_context *tctx,
DWORD i;
DWORD flags = PRINTER_ENUM_NAME;
PPRINTER_INFO_1 buffer = NULL;
+ BOOL ret = TRUE;
torture_comment(tctx, "Testing EnumPrinters level %d", 1);
@@ -619,13 +620,12 @@ static BOOL test_EachPrinter(struct torture_context *tctx,
}
for (i=0; i < returned; i++) {
- torture_assert(tctx, test_OnePrinter(tctx, buffer[i].pName, architecture),
- "failed to test one printer");
+ ret &= test_OnePrinter(tctx, buffer[i].pName, architecture);
}
free(buffer);
- return TRUE;
+ return ret;
}
/****************************************************************************