From 9607deeae06c8ed6aaefcaaf4487aaa84e5fe43c Mon Sep 17 00:00:00 2001 From: Christian Kreibich Date: Sun, 10 Jul 2022 21:39:57 -0700 Subject: [PATCH] Stop signal-masking upon running unit tests It helps to be able to ctrl-c these. --- src/zeek-setup.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/zeek-setup.cc b/src/zeek-setup.cc index 78ca5fd29e..df91fbab77 100644 --- a/src/zeek-setup.cc +++ b/src/zeek-setup.cc @@ -718,6 +718,7 @@ SetupResult setup(int argc, char** argv, Options* zopts) // Delay the unit test until here so that plugins have been loaded. if ( options.run_unit_tests ) { + set_signal_mask(false); // Allow ctrl-c to abort the tests early doctest::Context context; auto dargs = to_cargs(options.doctest_args); context.applyCommandLine(dargs.size(), dargs.data());