Yi Fan Yu 4c8c4a9c3a drd/tests/swapcontext: Add SIGALRM handler to avoid stacktrace
During testing for oe-core build on QEMU,
SIGALRM can trigger during nanosleep.
This results a different stderr output than expected.

```
==277== Process terminating with default action of signal 14 (SIGALRM)
==277==    at 0x36C74C3943: clock_nanosleep@@GLIBC_2.17 (clock_nanosleep.c:43)
==277==    by 0x36C74C8726: nanosleep (nanosleep.c:25)
```

This stacktrace printing will not occur
if we add a handler that simply exits.

https://bugs.kde.org/show_bug.cgi?id=435160

Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
2021-04-09 15:55:31 -07:00
..
2018-12-05 18:15:57 -08:00
2009-08-14 06:45:16 +00:00
2009-08-14 06:45:16 +00:00
2009-08-14 06:45:16 +00:00
2009-08-14 06:45:16 +00:00
2018-06-15 13:44:14 +00:00
2009-07-26 09:04:42 +00:00
2009-04-28 11:19:43 +00:00
2013-12-10 17:56:20 +00:00
2013-12-10 17:56:20 +00:00
2014-08-20 06:48:22 +00:00