This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
[portable canceled] [unwinder-portable] [patch 3/3] Older OS compatibility bits
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Mon, 02 Dec 2013 21:56:17 +0100
- Subject: [portable canceled] [unwinder-portable] [patch 3/3] Older OS compatibility bits
On Fri, 01 Nov 2013 17:05:57 +0100, Jan Kratochvil wrote:
> tests/
> 2013-11-01 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> Older OS compatibility bits.
> * backtrace-child.c (main): Ignore non-zero ERRNO after pthread_create.
> * run-backtrace.sh (check_err): Permit also No DWARF information found.
>
> --- a/tests/backtrace-child.c
> +++ b/tests/backtrace-child.c
> @@ -141,7 +141,7 @@ main (int argc UNUSED, char **argv)
> errno = 0;
> pthread_t thread;
> int i = pthread_create (&thread, NULL, start, NULL);
> - assert_perror (errno);
> + errno = 0; // assert_perror (errno); // RHEL-5 may set errno with i == 0
> assert (i == 0);
> if (ptraceme)
> {
This part was a bug. assert_perror was inappropriate even for trunk and so it
is no longer present in trunk.
> --- a/tests/run-backtrace.sh
> +++ b/tests/run-backtrace.sh
> @@ -60,6 +60,10 @@ check_err()
> if cmp -s <(echo "${abs_builddir}/backtrace: dwfl_thread_getframes: no matching address range") <(uniq <$1); then
> return
> fi
> + if cmp -s <(echo "${abs_builddir}/backtrace: dwfl_thread_getframes: No DWARF information found";
> + echo "${abs_builddir}/backtrace: dwfl_thread_getframes: no matching address range") <(sort -u <$1); then
> + return
> + fi
> cat >&2 $1
> echo >&2 $2: neither empty nor just out of DWARF
> false
Both errors are ignored already in trunk.
Jan