svn commit: r313515 - stable/10/contrib/netbsd-tests/lib/libpthread
Ngie Cooper
ngie at FreeBSD.org
Fri Feb 10 02:53:17 UTC 2017
Author: ngie
Date: Fri Feb 10 02:53:16 2017
New Revision: 313515
URL: https://svnweb.freebsd.org/changeset/base/313515
Log:
MFC r307553,r307583:
r307553 (by br):
Skip test on MIPS as it modifies TLS pointer in set_mcontext().
Discussed with: kib
r307583 (by br):
Skip test on FreeBSD only. So test can be upstreamed to NetBSD.
Requested by: ngie
Modified:
stable/10/contrib/netbsd-tests/lib/libpthread/t_swapcontext.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/contrib/netbsd-tests/lib/libpthread/t_swapcontext.c
==============================================================================
--- stable/10/contrib/netbsd-tests/lib/libpthread/t_swapcontext.c Fri Feb 10 02:51:53 2017 (r313514)
+++ stable/10/contrib/netbsd-tests/lib/libpthread/t_swapcontext.c Fri Feb 10 02:53:16 2017 (r313515)
@@ -104,6 +104,15 @@ ATF_TC_BODY(swapcontext1, tc)
{
pthread_t thread;
+#if defined(__FreeBSD__) && defined(__mips__)
+ /*
+ * MIPS modifies TLS pointer in set_mcontext(), so
+ * swapping contexts obtained from different threads
+ * gives us different pthread_self() return value.
+ */
+ atf_tc_skip("Platform is not supported.");
+#endif
+
oself = (void *)&val1;
nself = (void *)&val2;
More information about the svn-src-stable
mailing list