summaryrefslogtreecommitdiff
path: root/tests/run-readelf-s.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-readelf-s.sh')
-rwxr-xr-xtests/run-readelf-s.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/run-readelf-s.sh b/tests/run-readelf-s.sh
index ee1c0e82..6b218f10 100755
--- a/tests/run-readelf-s.sh
+++ b/tests/run-readelf-s.sh
@@ -395,4 +395,7 @@ Symbol table [27] '.symtab' contains 42 entries:
41: 00000000004003a8 0 FUNC GLOBAL DEFAULT 11 _init
EOF
+testrun ${abs_top_builddir}/src/readelf --elf-section -sW testfilebaxmin 2>&1 \
+ | grep "WARNING: cannot find section: 'W'" >/dev/null || exit 2
+
exit 0