From bd14bca33d2d8a8b2b296a62f2e13292a3f58068 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 27 Mar 2012 19:08:48 +0200 Subject: [PATCH] Use tag W-no-compiler-commands in buildd mode. --- bin/blhc | 6 +++++- t/tests.t | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/bin/blhc b/bin/blhc index 04b7125..544b32c 100755 --- 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; } diff --git a/t/tests.t b/t/tests.t index 9bdab49..bb8471b 100644 --- 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, ''; -- 2.43.2