diff options
| author | Jan Kratochvil <[email protected]> | 2014-01-18 21:56:13 +0100 |
|---|---|---|
| committer | Jan Kratochvil <[email protected]> | 2014-01-18 21:56:13 +0100 |
| commit | 435808a681cc375f0907f2066c4cc062173a6c7e (patch) | |
| tree | c28ca513149f15280b6ec0d4cc2d26ace25eb444 /tests/backtrace-child.c | |
| parent | 0535e51470bb178aefce572851f8ce1c3921cc42 (diff) | |
Fix false FAILs on testsuite with ulimit -c unlimited.
Signed-off-by: Jan Kratochvil <[email protected]>
Diffstat (limited to 'tests/backtrace-child.c')
| -rw-r--r-- | tests/backtrace-child.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/backtrace-child.c b/tests/backtrace-child.c index 0db12589..512aa238 100644 --- a/tests/backtrace-child.c +++ b/tests/backtrace-child.c @@ -100,7 +100,10 @@ sigusr2 (int signo) if (! gencore) { raise (SIGUSR1); - /* It should not be reached. */ + /* Do not return as stack may be invalid due to ptrace-patched PC to the + jmp function. */ + pthread_exit (NULL); + /* Not reached. */ abort (); } /* Here we dump the core for --gencore. */ @@ -218,6 +221,5 @@ main (int argc UNUSED, char **argv) pthread_join (thread, NULL); else raise (SIGUSR2); - /* Not reached. */ - abort (); + return 0; } |
