summaryrefslogtreecommitdiffstats
path: root/tests/run-readelf-self.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-readelf-self.sh')
-rwxr-xr-xtests/run-readelf-self.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/run-readelf-self.sh b/tests/run-readelf-self.sh
index 7ffb3577..f645a148 100755
--- a/tests/run-readelf-self.sh
+++ b/tests/run-readelf-self.sh
@@ -17,5 +17,10 @@
. $srcdir/test-subr.sh
+if ! grep -q -F '#define LIBEXT ".so"' ${abs_top_builddir}/config.h; then
+ echo "only works with native ELF binaries."
+ exit 77
+fi
+
# Just makes sure readelf doesn't crash
testrun_on_self_quiet ${abs_top_builddir}/src/readelf -a -w