summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2004-02-23 02:54:03 +0000
committerJim McDonough <jmcd@samba.org>2004-02-23 02:54:03 +0000
commit24df38dbc6648261f86adcffd664ffc43f8f3346 (patch)
treeb14e77a084a3ef92ccdcc6441e65c4849f2af407 /source3/torture
parent401959b7d7b3a29dbd1734318e5f6eb1248859f8 (diff)
downloadsamba-24df38dbc6648261f86adcffd664ffc43f8f3346.tar.gz
samba-24df38dbc6648261f86adcffd664ffc43f8f3346.tar.bz2
samba-24df38dbc6648261f86adcffd664ffc43f8f3346.zip
Janitor for tpot...bugzilla #1098, msleep already exists on aix
(This used to be commit 4319df7fdc2d878c509381923cc1db4d731620ba)
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/msgtest.c4
-rw-r--r--source3/torture/torture.c8
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 8c4d994b40..57ba24e63e 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",
@@ -4475,12 +4475,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);
@@ -4493,7 +4493,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) {