Date: Tue, 18 Oct 2016 10:13:54 +0000 (UTC) From: Ruslan Bukin <br@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r307553 - head/contrib/netbsd-tests/lib/libpthread Message-ID: <201610181013.u9IADs1j025157@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610181013.u9IADs1j025157>