summaryrefslogtreecommitdiff
path: root/tests/join2.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/join2.c')
-rw-r--r--tests/join2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/join2.c b/tests/join2.c
index 281a0df..8b1636c 100644
--- a/tests/join2.c
+++ b/tests/join2.c
@@ -29,7 +29,11 @@ main(int argc, char * argv[])
for (i = 0; i < 4; i++)
{
assert(pthread_join(id[i], (void *) &result) == 0);
+#if ! defined (__MINGW32__) || defined (__MSVCRT__)
+ /* CRTDLL _beginthread doesn't support return value, so
+ the assertion is guaranteed to fail. */
assert(result == i);
+#endif
}
/* Success. */