# Regex to catch compiler commands.
my $cc_regex = qr/
+ (?<!\s-) # ignore options, e.g. "-c++" [sic!] (used by swig)
(?<!\.) # ignore file names, e.g. "test.gcc"
(?:cc|gcc|g\+\+|c\+\+)
(?:-[\d.]+)? # version suffix, e.g. "gcc-4.6"
use strict;
use warnings;
-use Test::More tests => 130;
+use Test::More tests => 132;
sub is_blhc {
# configure/make
is_blhc 'configure', '', 1,
- 'No compiler commands!
-';
+ $empty;
is_blhc 'make', '', 1,
- 'No compiler commands!
-';
+ $empty;
$debian_hardening_wrapper;
+# false positives
+
+is_blhc 'false-positives', '', 1,
+ $empty;
+
+
# buildd support
is_blhc 'empty', '--buildd', 1,