From b3af0a03aa101b3839904ca236d907f62cba25f0 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 4 Dec 2007 11:38:57 +0100 Subject: [PATCH] add SESSSETUP_BENCH --- source/torture/torture.c | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/source/torture/torture.c b/source/torture/torture.c index 8ca2eb58981..aa83f52c234 100644 --- a/source/torture/torture.c +++ b/source/torture/torture.c @@ -4781,6 +4781,47 @@ static BOOL run_error_map_extract(int dummy) { return True; } +static BOOL run_sesssetup_bench(int dummy) +{ + static struct cli_state *c; + NTSTATUS status; + int i; + + if (!(c = open_nbt_connection())) { + return false; + } + + if (!cli_negprot(c)) { + printf("%s rejected the NT-error negprot (%s)\n", host, + cli_errstr(c)); + cli_shutdown(c); + return false; + } + + for (i=0; ivuid = 0; + } + + return True; +} + static BOOL run_local_substitute(int dummy) { TALLOC_CTX *mem_ctx; @@ -5026,6 +5067,7 @@ static struct { {"CHKPATH", torture_chkpath_test, 0}, {"FDSESS", run_fdsesstest, 0}, { "EATEST", run_eatest, 0}, + { "SESSSETUP_BENCH", run_sesssetup_bench, 0}, { "LOCAL-SUBSTITUTE", run_local_substitute, 0}, { "LOCAL-GENCACHE", run_local_gencache, 0}, {NULL, NULL, 0}}; -- 2.11.4.GIT