Commit 3a341f7
Julien Gilli
test: add --abort-on-timeout option to test.py
Currently, when a process times out, it is terminated by sending it the
SIGTERM signal. Sending SIGBART instead allows the operating system to
generate a core file that can be investigated later using post-mortem
debuggers such as llnode or mdb_v8.
This can be very useful when investigating flaky tests that time out,
since in that case the failure is difficult to reproduce, and being able
to look at a core file makes a big difference.
With these changes, passing the --abort-on-timeout command line option
to tools/test.py now sends SIGABRT to processes timing out on all
platforms but Windows.
PR-URL: #11086
Ref: #11026
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Santiago Gimeno <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>1 parent 6034bdc commit 3a341f7
1 file changed
+22
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
567 | | - | |
| 567 | + | |
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
571 | | - | |
| 571 | + | |
572 | 572 | | |
573 | 573 | | |
574 | 574 | | |
| |||
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
590 | 601 | | |
591 | 602 | | |
592 | 603 | | |
| |||
626 | 637 | | |
627 | 638 | | |
628 | 639 | | |
629 | | - | |
| 640 | + | |
630 | 641 | | |
631 | 642 | | |
632 | 643 | | |
| |||
647 | 658 | | |
648 | 659 | | |
649 | 660 | | |
650 | | - | |
| 661 | + | |
651 | 662 | | |
652 | 663 | | |
653 | 664 | | |
| |||
855 | 866 | | |
856 | 867 | | |
857 | 868 | | |
858 | | - | |
| 869 | + | |
859 | 870 | | |
860 | 871 | | |
861 | 872 | | |
| |||
866 | 877 | | |
867 | 878 | | |
868 | 879 | | |
| 880 | + | |
869 | 881 | | |
870 | 882 | | |
871 | 883 | | |
| |||
1400 | 1412 | | |
1401 | 1413 | | |
1402 | 1414 | | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
1403 | 1418 | | |
1404 | 1419 | | |
1405 | 1420 | | |
| |||
1579 | 1594 | | |
1580 | 1595 | | |
1581 | 1596 | | |
1582 | | - | |
| 1597 | + | |
| 1598 | + | |
1583 | 1599 | | |
1584 | 1600 | | |
1585 | 1601 | | |
| |||
0 commit comments