summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2017-02-10 02:53:16 +0000
committerngie <ngie@FreeBSD.org>2017-02-10 02:53:16 +0000
commitb077557d1b71fdc8a71775bb631c760676387f2d (patch)
treeab7f5646848ed624b2fe50de8ae70abc31bd6f58 /contrib/netbsd-tests/lib
parentf527327f0f8bed881a334aac6ab21b78a38c4752 (diff)
downloadFreeBSD-src-b077557d1b71fdc8a71775bb631c760676387f2d.zip
FreeBSD-src-b077557d1b71fdc8a71775bb631c760676387f2d.tar.gz
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
Diffstat (limited to 'contrib/netbsd-tests/lib')
-rw-r--r--contrib/netbsd-tests/lib/libpthread/t_swapcontext.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libpthread/t_swapcontext.c b/contrib/netbsd-tests/lib/libpthread/t_swapcontext.c
index a18ac2f..8536846 100644
--- a/contrib/netbsd-tests/lib/libpthread/t_swapcontext.c
+++ b/contrib/netbsd-tests/lib/libpthread/t_swapcontext.c
@@ -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;
OpenPOWER on IntegriCloud