Accepting request 407748 from home:Andreas_Schwab:Factory

- disable-tests-with-ptrace.patch: disable tests that use ptrace when
  running under qemu-linux-user

OBS-URL: https://build.opensuse.org/request/show/407748
OBS-URL: https://build.opensuse.org/package/show/Base:System/elfutils?expand=0&rev=81
This commit is contained in:
Dirk Mueller 2016-07-12 09:23:40 +00:00 committed by Git OBS Bridge
parent e9b6c82321
commit 794a2bdf98
3 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,31 @@
qemu-linux-user does not support ptrace, disable tests that depend on it
Index: elfutils-0.166/tests/Makefile.am
===================================================================
--- elfutils-0.166.orig/tests/Makefile.am
+++ elfutils-0.166/tests/Makefile.am
@@ -121,7 +121,7 @@ TESTS = run-arextract.sh run-arsymtest.s
run-stack-demangled-test.sh run-readelf-zx.sh run-readelf-zp.sh \
run-readelf-dwz-multi.sh run-allfcts-multi.sh run-deleted.sh \
run-linkmap-cut.sh run-aggregate-size.sh vdsosyms run-readelf-A.sh \
- run-getsrc-die.sh run-strptr.sh newdata elfstrtab dwfl-proc-attach \
+ run-getsrc-die.sh run-strptr.sh newdata elfstrtab \
elfshphehdr run-lfs-symbols.sh run-dwelfgnucompressed.sh \
run-elfgetchdr.sh \
run-elfgetzdata.sh run-elfputzdata.sh run-zstrptr.sh \
Index: elfutils-0.166/tests/backtrace-subr.sh
===================================================================
--- elfutils-0.166.orig/tests/backtrace-subr.sh
+++ elfutils-0.166/tests/backtrace-subr.sh
@@ -93,6 +93,11 @@ check_native_unsupported()
fi
;;
esac
+
+ if egrep 'qemu: Unsupported syscall' $err; then
+ echo >&2 $testname: qemu-linux-user does not support ptrace
+ exit 77
+ fi
}
check_core()

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jul 11 09:16:14 UTC 2016 - schwab@suse.de
- disable-tests-with-ptrace.patch: disable tests that use ptrace when
running under qemu-linux-user
-------------------------------------------------------------------
Mon Jun 27 12:26:22 UTC 2016 - fcrozat@suse.com

View File

@ -32,6 +32,7 @@ Source2: baselibs.conf
Source3: %{name}.changes
Patch1: elfutils-0.137-dwarf-header-check-fix.diff
Patch2: elfutils-0.166-elfcmp-comp-gcc6.patch
Patch3: disable-tests-with-ptrace.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake
@ -141,6 +142,10 @@ to develop applications that require these.
%setup -q
%patch1 -p1
%patch2 -p1
%if 0%{?qemu_user_space_build}
# qemu does not support ptrace
%patch3 -p1
%endif
%build
# Change DATE/TIME macros to use last change time of elfutils.changes