]> ruderich.org/simon Gitweb - blhc/blhc.git/commitdiff
Ignore false positive in ./configure summary.
authorSimon Ruderich <simon@ruderich.org>
Tue, 13 Mar 2012 23:02:48 +0000 (00:02 +0100)
committerSimon Ruderich <simon@ruderich.org>
Tue, 13 Mar 2012 23:02:48 +0000 (00:02 +0100)
MANIFEST
bin/blhc
t/logs/configure [new file with mode: 0644]
t/tests.t

index 51ed4bc1656b361554a6a903cea7ee17f61f799b..0c53335e3b4bdd81e6c749f0f954f9b7d2751eec 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -12,6 +12,7 @@ t/logs/bad-library
 t/logs/bad-multiline
 t/logs/c++
 t/logs/cc
+t/logs/configure
 t/logs/debian
 t/logs/empty
 t/logs/g++
index 383fcc15f06b0d0a3ea750d6104e4d9357fbd023..1cb49a6aa13990507138fc292bf995431571e6a8 100755 (executable)
--- a/bin/blhc
+++ b/bin/blhc
@@ -265,6 +265,11 @@ if ($bindnow) {
 }
 
 foreach my $line (@input) {
+    # Ignore false positives.
+    #
+    # ./configure summary.
+    next if $line =~ /^Compiler:\s+(cc|gcc|g\+\+|c\+\+)$/;
+
     # Is this a compiler or linker command?
     my $compiler = 1;
     my $linker   = 0;
diff --git a/t/logs/configure b/t/logs/configure
new file mode 100644 (file)
index 0000000..8e20f8f
--- /dev/null
@@ -0,0 +1,3 @@
+# Output by configure or similar tools which should be ignored.
+
+Compiler:            gcc
index f122c2527c3a3733d5c6cf2e575262b827942a80..60136066cb072ddba3d88c0b0067fbee2822e741 100644 (file)
--- a/t/tests.t
+++ b/t/tests.t
@@ -19,7 +19,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 66;
+use Test::More tests => 68;
 
 
 sub is_blhc {
@@ -280,6 +280,12 @@ LDFLAGS missing (-Wl,-z,now): gcc -shared -fPIC test.o -Wl,-z -Wl,relro -o .libs
 ";
 
 
+# configure
+
+is_blhc 'configure', '', 0,
+        '';
+
+
 # cc
 
 is_blhc 'cc', '--pie --bindnow', 4,