1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-23 06:50:21 +03:00

skip the readbraw tests if the server does not support it

This allows the RAW-READ test to pass against w2k8
This commit is contained in:
Andrew Tridgell 2009-08-05 11:32:01 +10:00
parent 58e5e1ea8d
commit 88d206070d

View File

@ -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)) {