diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-08-05 11:32:01 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-08-05 11:32:01 +1000 |
commit | 88d206070df8e6f1b9190390ddb13a600b1178e0 (patch) | |
tree | 086c27070d697b1ebf0b93559ac52ced87822b68 | |
parent | 58e5e1ea8d4c5a9eb8d36aa8132fd1ba3985ca53 (diff) | |
download | samba-88d206070df8e6f1b9190390ddb13a600b1178e0.tar.gz samba-88d206070df8e6f1b9190390ddb13a600b1178e0.tar.bz2 samba-88d206070df8e6f1b9190390ddb13a600b1178e0.zip |
skip the readbraw tests if the server does not support it
This allows the RAW-READ test to pass against w2k8
-rw-r--r-- | source4/torture/raw/read.c | 5 |
1 files changed, 5 insertions, 0 deletions
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)) { |