Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Feb 2017 02:53:16 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r313515 - stable/10/contrib/netbsd-tests/lib/libpthread
Message-ID:  <201702100253.v1A2rGPV010086@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702100253.v1A2rGPV010086>