diff options
-rw-r--r-- | source4/torture/rpc/spoolss.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index 7d0038e387..05049c11ce 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -3191,12 +3191,12 @@ static bool test_DoPrintTest_check_jobs(struct torture_context *tctx, } for (i=0; i < num_jobs; i++) { - torture_assert(tctx, - test_SetJob(tctx, b, handle, info[i].info1.job_id, SPOOLSS_JOB_CONTROL_PAUSE), - "failed to pause printjob"); - torture_assert(tctx, - test_SetJob(tctx, b, handle, info[i].info1.job_id, SPOOLSS_JOB_CONTROL_RESUME), - "failed to resume printjob"); + if (!test_SetJob(tctx, b, handle, info[i].info1.job_id, SPOOLSS_JOB_CONTROL_PAUSE)) { + torture_warning(tctx, "failed to pause printjob\n"); + } + if (!test_SetJob(tctx, b, handle, info[i].info1.job_id, SPOOLSS_JOB_CONTROL_RESUME)) { + torture_warning(tctx, "failed to resume printjob\n"); + } } return true; |