diff options
-rw-r--r-- | source4/torture/nbench/nbench.c | 2 | ||||
-rw-r--r-- | source4/torture/nbench/nbio.c | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/source4/torture/nbench/nbench.c b/source4/torture/nbench/nbench.c index 316e87ce994..a649b5fa159 100644 --- a/source4/torture/nbench/nbench.c +++ b/source4/torture/nbench/nbench.c @@ -139,6 +139,8 @@ again: status); } else if (!strcmp(params[0],"Flush")) { nb_flush(ival(params[1]), status); + } else if (!strcmp(params[0],"Sleep")) { + nb_sleep(ival(params[1]), status); } else { printf("[%d] Unknown operation %s\n", nbench_line_count, params[0]); } diff --git a/source4/torture/nbench/nbio.c b/source4/torture/nbench/nbio.c index 9b6ec7943d4..35147c6de9e 100644 --- a/source4/torture/nbench/nbio.c +++ b/source4/torture/nbench/nbio.c @@ -618,6 +618,12 @@ void nb_flush(int fnum, NTSTATUS status) check_status("Flush", status, ret); } +void nb_sleep(int usec, NTSTATUS status) +{ + (void)status; + sys_usleep(usec); +} + void nb_deltree(const char *dname) { int total_deleted; |