summaryrefslogtreecommitdiff
path: root/tests/join1.c
diff options
context:
space:
mode:
authorrpj <rpj>2005-05-15 15:28:24 +0000
committerrpj <rpj>2005-05-15 15:28:24 +0000
commit46ae637c4ef03a921d4a06baf99219c6149a7d20 (patch)
treeca25c87f4285954f598d6f9b11b906d74b24750d /tests/join1.c
parentd4a22be21479c3b52e0ba2d3cfb150a98c426422 (diff)
''
Diffstat (limited to 'tests/join1.c')
-rw-r--r--tests/join1.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/join1.c b/tests/join1.c
index 8f52ae7..8b11e95 100644
--- a/tests/join1.c
+++ b/tests/join1.c
@@ -43,7 +43,7 @@ func(void * arg)
{
int i = (int) arg;
- Sleep(i * 500);
+ Sleep(i * 100);
pthread_exit(arg);
@@ -65,17 +65,12 @@ main(int argc, char * argv[])
}
/* Some threads will finish before they are joined, some after. */
- Sleep(1000);
+ Sleep(2 * 100 + 50);
for (i = 0; i < 4; i++)
{
assert(pthread_join(id[i], (void **) &result) == 0);
-#if ! defined (__MINGW32__) || defined (__MSVCRT__)
assert(result == i);
-#else
-# warning pthread_join not fully supported in this configuration.
- assert(result == 0);
-#endif
}
/* Success. */