From 88d206070df8e6f1b9190390ddb13a600b1178e0 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 5 Aug 2009 11:32:01 +1000 Subject: skip the readbraw tests if the server does not support it This allows the RAW-READ test to pass against w2k8 --- source4/torture/raw/read.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4') diff --git a/source4/torture/raw/read.c b/source4/torture/raw/read.c index 977ac6b8cb..4fd2cf50c6 100644 --- a/source4/torture/raw/read.c +++ b/source4/torture/raw/read.c @@ -622,6 +622,11 @@ static bool test_readbraw(struct torture_context *tctx, const char *test_data = "TEST DATA"; uint_t seed = time(NULL); + if (!cli->transport->negotiate.readbraw_supported) { + printf("Server does not support readbraw - skipping\n"); + return true; + } + buf = talloc_zero_array(tctx, uint8_t, maxsize); if (!torture_setup_dir(cli, BASEDIR)) { -- cgit