Skip to content

Commit 1f5a8e4

Browse files
committed
Add test_enable_without_c_stack()
1 parent f52d2d4 commit 1f5a8e4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Lib/test/test_faulthandler.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,17 @@ def test_enable_single_thread(self):
360360
'Segmentation fault',
361361
all_threads=False)
362362

363+
@skip_segfault_on_android
364+
def test_enable_without_c_stack(self):
365+
self.check_fatal_error("""
366+
import faulthandler
367+
faulthandler.enable(c_stack=False)
368+
faulthandler._sigsegv()
369+
""",
370+
3,
371+
'Segmentation fault',
372+
c_stack=False)
373+
363374
@skip_segfault_on_android
364375
def test_disable(self):
365376
code = """

0 commit comments

Comments
 (0)