SHA256
1
0
forked from pool/elfutils
elfutils/disable-tests-with-ptrace.patch

44 lines
1.7 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.171/tests/Makefile.am
===================================================================
--- elfutils-0.171.orig/tests/Makefile.am
+++ elfutils-0.171/tests/Makefile.am
@@ -102,7 +102,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 \
@@ -134,8 +134,8 @@ TESTS = run-arextract.sh run-arsymtest.s
run-readelf-types.sh \
run-readelf-dwz-multi.sh run-allfcts-multi.sh run-deleted.sh \
run-linkmap-cut.sh run-aggregate-size.sh run-peel-type.sh \
- vdsosyms run-readelf-A.sh \
- run-getsrc-die.sh run-strptr.sh newdata elfstrtab dwfl-proc-attach \
+ 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.171/tests/backtrace-subr.sh
===================================================================
--- elfutils-0.171.orig/tests/backtrace-subr.sh
+++ elfutils-0.171/tests/backtrace-subr.sh
@@ -106,6 +106,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()