forked from pool/elfutils
Dirk Mueller
794a2bdf98
- 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
32 lines
1.2 KiB
Diff
32 lines
1.2 KiB
Diff
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()
|