SHA256
1
0
forked from pool/elfutils
elfutils/disable-tests-with-ptrace.patch
2016-07-12 09:23:40 +00:00

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()