test_helper: Give self-signalling a chance to trigger

This abort()ed right after the signal, so it's possible to crash
before the signal is delivered. This could trigger under ASAN on
Github Actions.
This commit is contained in:
Fabian Boehm 2024-03-19 16:41:25 +01:00
parent c759a98b37
commit ce62b284b1

View file

@ -181,11 +181,13 @@ static void print_stop_cont() {
static void sigkill_self() {
kill(getpid(), SIGKILL);
usleep(20000000); // 20 secs
abort();
}
static void sigint_self() {
kill(getpid(), SIGINT);
usleep(20000000); // 20 secs
abort();
}