|
From: <sv...@va...> - 2012-12-20 19:02:27
|
petarj 2012-12-20 19:02:17 +0000 (Thu, 20 Dec 2012)
New Revision: 13191
Log:
Use different incorrect value in pth_detached3
The test pth_detached3 will crash on MIPS platform if the value passed to
pthread_detach is not correctly aligned. Thus, we change the value to be still
invalid but aligned.
This fixes the failure of drd/tests/pth_detached3 on MIPS32.
Modified files:
trunk/drd/tests/pth_detached3.c
Modified: trunk/drd/tests/pth_detached3.c (+1 -1)
===================================================================
--- trunk/drd/tests/pth_detached3.c 2012-12-20 18:56:57 +00:00 (rev 13190)
+++ trunk/drd/tests/pth_detached3.c 2012-12-20 19:02:17 +00:00 (rev 13191)
@@ -21,7 +21,7 @@
pthread_detach(thread);
/* Invoke pthread_detach() with an invalid thread ID. */
- pthread_detach(thread + 1);
+ pthread_detach(thread + 8);
fprintf(stderr, "Finished.\n");
|