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 | |
| parent | 0535e51470bb178aefce572851f8ce1c3921cc42 (diff) | |
Fix false FAILs on testsuite with ulimit -c unlimited.
Signed-off-by: Jan Kratochvil <[email protected]>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ChangeLog | 6 | ||||
| -rw-r--r-- | tests/backtrace-child.c | 8 |
2 files changed, 11 insertions, 3 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index 1b84f3a1..df5c509a 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,9 @@ +2014-01-18 Jan Kratochvil <[email protected]> + + Fix false FAILs on testsuite with ulimit -c unlimited. + * backtrace-child.c (sigusr2): Call pthread_exit. + (main): Return, do not call abort. + 2014-01-15 Jan Kratochvil <[email protected]> Fix corruption of non-C++ symbols by the demangler. 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; } |
