svn commit: r307553 - head/contrib/netbsd-tests/lib/libpthread

Ruslan Bukin br at FreeBSD.org
Tue Oct 18 10:13:55 UTC 2016


Author: br
Date: Tue Oct 18 10:13:54 2016
New Revision: 307553
URL: https://svnweb.freebsd.org/changeset/base/307553

Log:
  Skip test on MIPS as it modifies TLS pointer in set_mcontext().
  
  Discussed with:	kib
  Sponsored by:	DARPA, AFRL
  Sponsored by:	HEIF5

Modified:
  head/contrib/netbsd-tests/lib/libpthread/t_swapcontext.c

Modified: head/contrib/netbsd-tests/lib/libpthread/t_swapcontext.c
==============================================================================
--- head/contrib/netbsd-tests/lib/libpthread/t_swapcontext.c	Tue Oct 18 10:12:55 2016	(r307552)
+++ head/contrib/netbsd-tests/lib/libpthread/t_swapcontext.c	Tue Oct 18 10:13:54 2016	(r307553)
@@ -97,6 +97,15 @@ ATF_TC_BODY(swapcontext1, tc)
 {
 	pthread_t thread;
 
+#ifdef __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-head mailing list