From 0b9bf47fda49b743b8b7335d121517709a33ae0f Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 30 Aug 2002 18:56:00 +0000 Subject: Better error reporting on OPEN test. Jeremy. (This used to be commit 4e836c4ce2b51e42ab4f29c6c916fe6a73a58654) --- source3/torture/torture.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 89d62b44a6..977591bc53 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -844,7 +844,7 @@ static BOOL run_locktest1(int dummy) printf("error: This server appears not to support timed lock requests\n"); } printf("server slept for %u seconds for a %u second timeout\n", - t2-t1, lock_timeout); + (unsigned int)(t2-t1), lock_timeout); if (!cli_close(&cli1, fnum2)) { printf("close1 failed (%s)\n", cli_errstr(&cli1)); @@ -3454,7 +3454,9 @@ static BOOL run_opentest(int dummy) correct = False; cli_close(&cli1, fnum1); } else { - printf("test 8 open 3 of %s gave %s (correct error should be %s)\n", fname, cli_errstr(&cli1), "ACCESS_DENIED"); + if (check_error(__LINE__, &cli1, ERRDOS, ERRnoaccess, NT_STATUS_ACCESS_DENIED)) { + printf("correct error code NT_STATUS_ACCESS_DENIED/ERRDOS:ERRnoaccess returned\n"); + } } printf("Attribute open test #8 passed.\n"); -- cgit