mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
Stop signal-masking upon running unit tests
It helps to be able to ctrl-c these.
This commit is contained in:
parent
9138d5c64e
commit
9607deeae0
1 changed files with 1 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue