git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12908
/* Join the created thread. */
pthread_join(tid, 0);
+ /* Invoke pthread_cancel() with an invalid thread ID. */
+ pthread_cancel(tid);
+
fprintf(stderr, "Test finished.\n");
return 0;
at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
by 0x........: main (pth_cancel_locked.c:?)
+pthread_cancel(): invalid thread ID 0x........
+ at 0x........: pthread_cancel (drd_pthread_intercepts.c:?)
+ by 0x........: main (pth_cancel_locked.c:?)
+
Test finished.
-ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
+ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)