]> sourceware.org Git - valgrind.git/commit
drd/tests/swapcontext: Add SIGALRM handler to avoid stacktrace
authorYi Fan Yu <yifan.yu@windriver.com>
Thu, 1 Apr 2021 19:31:47 +0000 (15:31 -0400)
committerBart Van Assche <bvanassche@acm.org>
Fri, 9 Apr 2021 22:55:31 +0000 (15:55 -0700)
commit4c8c4a9c3a92300e3e6500e5a278ca37514a1fdb
tree1a0ad255b8d5bd6a237c070f76051d297c40142f
parent5e41080720e451cefc2265c64f82fb77a9f29151
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>
drd/tests/swapcontext.c
drd/tests/swapcontext.stderr.exp
This page took 0.031716 seconds and 5 git commands to generate.