On Fri, 01 Nov 2013 17:05:57 +0100, Jan Kratochvil wrote:
tests/
2013-11-01 Jan Kratochvil <jan.kratochvil(a)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