git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
478ac36
)
s4/torture: use time_mono for timeouts
author
Björn Jacke
<bj@sernet.de>
Fri, 10 Sep 2010 18:28:41 +0000
(20:28 +0200)
committer
Björn Jacke
<bj@sernet.de>
Fri, 10 Sep 2010 21:10:25 +0000
(23:10 +0200)
source4/torture/basic/secleak.c
patch
|
blob
|
history
diff --git
a/source4/torture/basic/secleak.c
b/source4/torture/basic/secleak.c
index 92dc3508f36f9af060bf4842b143d26a90d99435..4c73df1a0f98c3e1436576ebf9b1b4ef472f0a4b 100644
(file)
--- a/
source4/torture/basic/secleak.c
+++ b/
source4/torture/basic/secleak.c
@@
-62,10
+62,10
@@
static bool try_failed_login(struct torture_context *tctx, struct smbcli_state *
bool torture_sec_leak(struct torture_context *tctx, struct smbcli_state *cli)
{
- time_t t1 = time(NULL);
+ time_t t1 = time
_mono
(NULL);
int timelimit = torture_setting_int(tctx, "timelimit", 20);
- while (time(NULL) < t1+timelimit) {
+ while (time
_mono
(NULL) < t1+timelimit) {
if (!try_failed_login(tctx, cli)) {
return false;
}