]> ruderich.org/simon Gitweb - blhc/blhc.git/commitdiff
Use tag W-no-compiler-commands in buildd mode.
authorSimon Ruderich <simon@ruderich.org>
Tue, 27 Mar 2012 17:08:48 +0000 (19:08 +0200)
committerSimon Ruderich <simon@ruderich.org>
Tue, 27 Mar 2012 17:08:48 +0000 (19:08 +0200)
bin/blhc
t/tests.t

index 04b7125e87185f5c1706d4345685ffe75a2462b6..544b32cb6fa31f68988b2c56f98504d738caeffa 100755 (executable)
--- a/bin/blhc
+++ b/bin/blhc
@@ -602,7 +602,11 @@ FILE: foreach my $file (@ARGV) {
     close $fh;
 
     if (scalar @input == 0) {
-        print "No compiler commands!\n";
+        if (not $option_buildd) {
+            print "No compiler commands!\n";
+        } else {
+            print "W-no-compiler-commands\n";
+        }
         $exit |= 1;
         next FILE;
     }
index 9bdab495bc6aa87f8017667ab20d4b6b51212555..bb8471b60c5f0608e46bbb82e8875ea8fc22610e 100644 (file)
--- a/t/tests.t
+++ b/t/tests.t
@@ -19,7 +19,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 100;
+use Test::More tests => 102;
 
 
 sub is_blhc {
@@ -573,6 +573,10 @@ is_blhc 'debian-hardening-wrapper', '', 16,
 
 # buildd support
 
+is_blhc 'empty', '--buildd', 1,
+        'W-no-compiler-commands
+';
+
 is_blhc 'buildd-package-details', '--buildd', 0,
         '';