diff options
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/msgtest.c | 4 | ||||
-rw-r--r-- | source3/torture/torture.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/source3/torture/msgtest.c b/source3/torture/msgtest.c index 8abb0a20d2..c40973a75c 100644 --- a/source3/torture/msgtest.c +++ b/source3/torture/msgtest.c @@ -63,7 +63,7 @@ void pong_message(int msg_type, pid_t src, void *buf, size_t len) while (pong_count < i) { message_dispatch(); - msleep(1); + smb_msleep(1); } /* Now test that the duplicate filtering code works. */ @@ -78,7 +78,7 @@ void pong_message(int msg_type, pid_t src, void *buf, size_t len) for (i=0;i<n;i++) { message_dispatch(); - msleep(1); + smb_msleep(1); } if (pong_count != 2) { diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 2e6bc49d55..9d0a6bb79e 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -389,7 +389,7 @@ static BOOL rw_torture3(struct cli_state *c, char *lockfname) { fnum = cli_open(c, lockfname, O_RDONLY, DENY_NONE); - msleep(10); + smb_msleep(10); } if (fnum == -1) { printf("second open read-only of %s failed (%s)\n", @@ -4464,12 +4464,12 @@ static double create_procs(BOOL (*fn)(int), BOOL *result) printf("pid %d failed to start\n", (int)getpid()); _exit(1); } - msleep(10); + smb_msleep(10); } child_status[i] = getpid(); - while (child_status[i] && end_timer() < 5) msleep(2); + while (child_status[i] && end_timer() < 5) smb_msleep(2); child_status_out[i] = fn(i); _exit(0); @@ -4482,7 +4482,7 @@ static double create_procs(BOOL (*fn)(int), BOOL *result) if (child_status[i]) synccount++; } if (synccount == nprocs) break; - msleep(10); + smb_msleep(10); } while (end_timer() < 30); if (synccount != nprocs) { |