mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
testprogs: test each printer, do not abort after first failure.
Guenther
This commit is contained in:
parent
3e7b7bfd27
commit
9a1b298e3d
@ -599,6 +599,7 @@ static BOOL test_EachPrinter(struct torture_context *tctx,
|
|||||||
DWORD i;
|
DWORD i;
|
||||||
DWORD flags = PRINTER_ENUM_NAME;
|
DWORD flags = PRINTER_ENUM_NAME;
|
||||||
PPRINTER_INFO_1 buffer = NULL;
|
PPRINTER_INFO_1 buffer = NULL;
|
||||||
|
BOOL ret = TRUE;
|
||||||
|
|
||||||
torture_comment(tctx, "Testing EnumPrinters level %d", 1);
|
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++) {
|
for (i=0; i < returned; i++) {
|
||||||
torture_assert(tctx, test_OnePrinter(tctx, buffer[i].pName, architecture),
|
ret &= test_OnePrinter(tctx, buffer[i].pName, architecture);
|
||||||
"failed to test one printer");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
free(buffer);
|
free(buffer);
|
||||||
|
|
||||||
return TRUE;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user