git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6841c75
)
s4-torture: add torture_sleep()
author
Günther Deschner
<gd@samba.org>
Fri, 22 Sep 2017 00:31:32 +0000
(
02:31
+0200)
committer
Stefan Metzmacher
<metze@samba.org>
Mon, 18 Feb 2019 11:31:36 +0000
(12:31 +0100)
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
source4/torture/util_smb.c
patch
|
blob
|
history
diff --git
a/source4/torture/util_smb.c
b/source4/torture/util_smb.c
index 5ca816f7cdee35f64311b7c6fb3af274b427d41c..c7a8b209230ccd0516f848f8edd4beea82332a13 100644
(file)
--- a/
source4/torture/util_smb.c
+++ b/
source4/torture/util_smb.c
@@
-967,3
+967,11
@@
NTSTATUS torture_check_privilege(struct smbcli_state *cli,
return smblsa_sid_check_privilege(cli, sid_str, privilege);
}
+
+void torture_sleep(struct torture_context *tctx,
+ int sleep_seconds)
+{
+ torture_comment(tctx, "Sleeping for %d seconds\n", sleep_seconds);
+
+ smb_msleep(sleep_seconds * 1000);
+}