]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
tests: skip run-deleted.sh when dwfl_linux_proc_attach is not implemented
authorPino Toscano <toscano.pino@tiscali.it>
Sat, 27 Jun 2015 17:23:01 +0000 (19:23 +0200)
committerMark Wielaard <mjw@redhat.com>
Sat, 27 Jun 2015 21:28:35 +0000 (23:28 +0200)
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 <toscano.pino@tiscali.it>
tests/ChangeLog
tests/run-deleted.sh

index 3e567b340875b233c3a34f1e448b8ca600782282..90b9a0a1ca90530d32c7b69e977fd3b37f87542f 100644 (file)
@@ -1,3 +1,8 @@
+2015-06-27  Pino Toscano  <toscano.pino@tiscali.it>
+
+       * tests/run-deleted.sh: Skip when detecting a not implemented
+       dwfl_linux_proc_attach.
+
 2015-06-27  Pino Toscano  <toscano.pino@tiscali.it>
 
        * tests/dwfl-bug-fd-leak.c (elfutils_open): Check for null results of
index 2b5a9a84f56bdbbed84fa067c7d42c1e8ee7dce9..0f6476212ac2f999e03cb2da394ed7dd42f21a66 100755 (executable)
@@ -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