From ea2f34e2860680bab82aa7c2538971ab788209ce Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Thu, 14 Jan 2021 14:04:17 +0100 Subject: mtest: allow quickly interrupting the test run The new behavior of interrupting the longest running test with Ctrl-C is useful when tests hang, but not when the run is completely broken for some reason. Psychology tells us that the user will compulsively spam Ctrl-C in this case, so exit if three Ctrl-C's are detected within a second. --- docs/markdown/snippets/meson_test_interrupt.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/markdown/snippets/meson_test_interrupt.md (limited to 'docs/markdown/snippets') diff --git a/docs/markdown/snippets/meson_test_interrupt.md b/docs/markdown/snippets/meson_test_interrupt.md new file mode 100644 index 0000000..2d1ed26 --- /dev/null +++ b/docs/markdown/snippets/meson_test_interrupt.md @@ -0,0 +1,5 @@ +## Ctrl-C behavior in `meson test` + +Starting from this version, sending a `SIGINT` signal (or pressing `Ctrl-C`) +to `meson test` will interrupt the longest running test. Pressing `Ctrl-C` +three times within a second will exit `meson test`. -- cgit v1.1