summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPino Toscano <[email protected]>2015-06-27 19:23:01 +0200
committerMark Wielaard <[email protected]>2015-06-27 23:28:35 +0200
commit26d5a631209a82efe1d55dd44a9c65dc481138cb (patch)
treed76d3519610607697e5eb2f9ec894c91875a9f5b
parent349d1cd1a34a7f9ee6a93aa6cf839ce0c8ceea28 (diff)
tests: skip run-deleted.sh when dwfl_linux_proc_attach is not implemented
If the current OS does not implement dwfl_linux_proc_attach (which currently only Linux does) then skip this test, as "stack" uses that API for attaching to a running process. Signed-off-by: Pino Toscano <[email protected]>
-rw-r--r--tests/ChangeLog5
-rwxr-xr-xtests/run-deleted.sh4
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog
index 3e567b34..90b9a0a1 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,5 +1,10 @@
2015-06-27 Pino Toscano <[email protected]>
+ * tests/run-deleted.sh: Skip when detecting a not implemented
+ dwfl_linux_proc_attach.
+
+2015-06-27 Pino Toscano <[email protected]>
+
* tests/dwfl-bug-fd-leak.c (elfutils_open): Check for null results of
dwfl_addrmodule.
diff --git a/tests/run-deleted.sh b/tests/run-deleted.sh
index 2b5a9a84..0f647621 100755
--- a/tests/run-deleted.sh
+++ b/tests/run-deleted.sh
@@ -38,6 +38,10 @@ cat bt bt.err
kill -9 $pid
wait
check_native_unsupported bt.err deleted
+if grep -q -E ': dwfl_linux_proc_attach pid ([[:digit:]]+): Function not implemented$' bt.err; then
+ echo >&2 deleted: OS not supported
+ exit 77
+fi
# For PPC64 we need access to the OPD table which we get through the shdrs
# (see backends/ppc64_init.c) but for the deleted-lib we only have phdrs.
# So we don't have the name of the function. But since we should find