[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 01/01: t: Fix two test issues



This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository lintian.

commit fdde6b14a30c06a34e6778d4b9bf0633f1fa1013
Author: Niels Thykier <niels@thykier.net>
Date:   Sat Jun 20 12:09:22 2015 +0200

    t: Fix two test issues
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 helpers/coll/objdump-info-helper      | 2 +-
 t/tests/ocaml-general/debian/Makefile | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/helpers/coll/objdump-info-helper b/helpers/coll/objdump-info-helper
index 3d35fbf..d73de98 100755
--- a/helpers/coll/objdump-info-helper
+++ b/helpers/coll/objdump-info-helper
@@ -174,7 +174,7 @@ while (my $line = <$readelf>) {
         next;
 
     } elsif ($line =~ m/^\s*\[\s*(\d+)\] (\S+)(?:\s|\Z)/
-             and $section eq 'SH') {
+        and $section eq 'SH') {
         $sections[$1] = $2;
         # We need sections as well (e.g. for incomplete stripping)
         print " $1 $2\n";
diff --git a/t/tests/ocaml-general/debian/Makefile b/t/tests/ocaml-general/debian/Makefile
index b174871..d5eed41 100644
--- a/t/tests/ocaml-general/debian/Makefile
+++ b/t/tests/ocaml-general/debian/Makefile
@@ -4,6 +4,11 @@ all: symbol.a symbol-dev.a
 
 %.a: %.o
 	ar rv $@ $<
+	# Not entirely sure this is acceptable for a normal OCaml
+	# library, but for this test the library does not need
+	# to work and it avoids a warning about unneeded sections.
+	strip --remove-section=.comment --remove-section=.note \
+	  --strip-debug $@
 
 symbol-dev.o: symbol.c
 	cc -c $< -o $@

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: