summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-08-30 18:56:00 +0000
committerJeremy Allison <jra@samba.org>2002-08-30 18:56:00 +0000
commit0b9bf47fda49b743b8b7335d121517709a33ae0f (patch)
tree8b553648a16ca114ccfefd03e59847bab170b760
parent85c9ee4ddb9c03f017b2ba559351757dc7b0cf40 (diff)
downloadsamba-0b9bf47fda49b743b8b7335d121517709a33ae0f.tar.gz
samba-0b9bf47fda49b743b8b7335d121517709a33ae0f.tar.xz
samba-0b9bf47fda49b743b8b7335d121517709a33ae0f.zip
Better error reporting on OPEN test.
Jeremy. (This used to be commit 4e836c4ce2b51e42ab4f29c6c916fe6a73a58654)
-rw-r--r--source3/torture/torture.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 89d62b44a60..977591bc534 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");