summaryrefslogtreecommitdiff
path: root/tests/cancel6d.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cancel6d.c')
-rw-r--r--tests/cancel6d.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/cancel6d.c b/tests/cancel6d.c
index 3fd296a..37f9ca5 100644
--- a/tests/cancel6d.c
+++ b/tests/cancel6d.c
@@ -136,7 +136,10 @@ main()
for (i = 1; i <= NUMTHREADS; i++)
{
assert(pthread_cancel(t[i]) == 0);
- assert(pthread_cancel(t[i]) == 0);
+ if (pthread_cancel(t[i]) != 0)
+ {
+ printf("Second cancelation failed but this is expected sometimes.\n");
+ }
}
/*