Stop signal-masking upon running unit tests

It helps to be able to ctrl-c these.
This commit is contained in:
Christian Kreibich 2022-07-10 21:39:57 -07:00
parent 9138d5c64e
commit 9607deeae0

View file

@ -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());