summaryrefslogtreecommitdiff
path: root/tests/join1.c
diff options
context:
space:
mode:
authorrpj <rpj>2005-05-16 15:42:44 +0000
committerrpj <rpj>2005-05-16 15:42:44 +0000
commita824c43d3f20fc5722c5fd8f0f942f632b961723 (patch)
treee33174f1e54bcb5dffa3fb16be69713f4cc497c0 /tests/join1.c
parent08e2916eb07fb75b2907032e2418316bf980d945 (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. */