Skip to content

Commit 5bad4a5

Browse files
committed
Handling of segfault for mutant subprocess
1 parent 51fd290 commit 5bad4a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mutmut/__main__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
# TODO: hash of function. If hash changes, retest all mutants as mutant IDs are not stable
6666

6767

68-
6968
status_by_exit_code = {
7069
1: 'killed',
7170
3: 'killed', # internal error in pytest means a kill
@@ -81,6 +80,7 @@
8180
24: 'timeout', # SIGXCPU
8281
152: 'timeout', # SIGXCPU
8382
255: 'timeout',
83+
-11: 'segfault',
8484
}
8585

8686
emoji_by_status = {
@@ -92,6 +92,7 @@
9292
'check was interrupted by user': '🛑',
9393
'not checked': '?',
9494
'killed': '🎉',
95+
'segfault': '💥',
9596
}
9697

9798
exit_code_to_emoji = {

0 commit comments

Comments
 (0)