1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-01 04:58:35 +03:00

r22322: Cut timelimits for BENCH tests run in quicktest.

Andrew Bartlett
(This used to be commit 63b89ccbebee6b1a73ac495e03c566e0b39e4646)
This commit is contained in:
Andrew Bartlett 2007-04-17 22:35:01 +00:00 committed by Gerald (Jerry) Carter
parent 81fb404a6f
commit e18eed167a
2 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ static bool bench_namequery(struct torture_context *tctx)
struct result_struct *result;
struct nbt_name_query io;
struct timeval tv = timeval_current();
int timelimit = torture_setting_int(tctx, "timelimit", 10);
int timelimit = torture_setting_int(tctx, "timelimit", 5);
const char *address;
struct nbt_name name;
@ -105,7 +105,7 @@ static bool bench_namequery(struct torture_context *tctx)
struct torture_suite *torture_bench_nbt(void)
{
struct torture_suite *suite = torture_suite_create(talloc_autofree_context(),
"BENCH");
"BENCH");
torture_suite_add_simple_test(suite, "namequery", bench_namequery);
return suite;

View File

@ -225,7 +225,7 @@ static bool bench_wins(struct torture_context *tctx)
int num_sent=0;
struct timeval tv = timeval_current();
bool ret = true;
int timelimit = torture_setting_int(tctx, "timelimit", 10);
int timelimit = torture_setting_int(tctx, "timelimit", 5);
struct wins_state *state;
extern int torture_entries;
struct socket_address *my_ip;