]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #12868: Skip test_faulthandler.test_stack_overflow() on OpenBSD:
authorCharles-François Natali <neologix@free.fr>
Thu, 1 Sep 2011 21:08:21 +0000 (23:08 +0200)
committerCharles-François Natali <neologix@free.fr>
Thu, 1 Sep 2011 21:08:21 +0000 (23:08 +0200)
sigaltstack(2) doesn't work when linked with pthread.

Lib/test/test_faulthandler.py

index 331dd2ec86e12bb6b53e2788fffaf2e045a6da41..977cb3928ba3e03c2110c62b3a0704cfa4336b1f 100644 (file)
@@ -174,6 +174,9 @@ faulthandler._fatal_error(b'xyz')
             2,
             'xyz')
 
+    @unittest.skipIf(sys.platform.startswith('openbsd') and HAVE_THREADS,
+                     "Issue #12868: sigaltstack() doesn't work on "
+                     "OpenBSD if Python is compiled with pthread")
     @unittest.skipIf(not hasattr(faulthandler, '_stack_overflow'),
                      'need faulthandler._stack_overflow()')
     def test_stack_overflow(self):