summaryrefslogtreecommitdiff
path: root/tests/join1.c
diff options
context:
space:
mode:
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. */