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;
 
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to