elfutils/disable-tests-with-ptrace.patch
Richard Biener 0cab1d9022 Accepting request 504468 from home:AndreasSchwab:f
- ppc-machine-flags.patch: support EM_PPC machine flags
- disable-tests-with-ptrace.patch: disable more tests

OBS-URL: https://build.opensuse.org/request/show/504468
OBS-URL: https://build.opensuse.org/package/show/Base:System/elfutils?expand=0&rev=97
2017-06-19 08:01:08 +00:00

44 lines
1.8 KiB
Diff

qemu-linux-user does not support ptrace, disable tests that depend on it
/proc/self/auxv is not properly abstracted away
Index: elfutils-0.168/tests/Makefile.am
===================================================================
--- elfutils-0.168.orig/tests/Makefile.am
+++ elfutils-0.168/tests/Makefile.am
@@ -96,7 +96,7 @@ TESTS = run-arextract.sh run-arsymtest.s
run-native-test.sh run-bug1-test.sh \
run-debuglink.sh run-debugaltlink.sh run-buildid.sh \
dwfl-bug-addr-overflow run-addrname-test.sh \
- dwfl-bug-fd-leak dwfl-bug-report \
+ dwfl-bug-report \
run-dwfl-bug-offline-rel.sh run-dwfl-addr-sect.sh \
run-disasm-x86.sh run-disasm-x86-64.sh \
run-early-offscn.sh run-dwarf-getmacros.sh run-dwarf-ranges.sh \
@@ -120,8 +120,8 @@ TESTS = run-arextract.sh run-arsymtest.s
run-backtrace-demangle.sh run-stack-d-test.sh run-stack-i-test.sh \
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-linkmap-cut.sh run-aggregate-size.sh run-readelf-A.sh \
+ 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.168/tests/backtrace-subr.sh
===================================================================
--- elfutils-0.168.orig/tests/backtrace-subr.sh
+++ elfutils-0.168/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()