From 4769334033d6a630aa26128c4991443b91f36f13 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 28 May 2013 23:12:54 +0200 Subject: [PATCH] Add test for possible false-negative in configure check. --- t/logs/configure-check | 5 +++++ t/tests.t | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 t/logs/configure-check diff --git a/t/logs/configure-check b/t/logs/configure-check new file mode 100644 index 0000000..aaee2d1 --- /dev/null +++ b/t/logs/configure-check @@ -0,0 +1,5 @@ +dpkg-buildpackage: source package test + +# Safety checks to prevent false negatives. + + CC = gcc -std=gnu99 -std=gnu99 test.c diff --git a/t/tests.t b/t/tests.t index f08d8ed..1b3b72b 100644 --- a/t/tests.t +++ b/t/tests.t @@ -19,7 +19,7 @@ use strict; use warnings; -use Test::More tests => 204; +use Test::More tests => 206; sub is_blhc { @@ -651,6 +651,10 @@ CFLAGS missing (-Werror=format-security): cd /tmp/test/src && /usr/bin/gcc -g -O is_blhc 'configure', '', 1, $empty; +is_blhc 'configure-check', '', 4, + 'NONVERBOSE BUILD: CC = gcc -std=gnu99 -std=gnu99 test.c +'; + is_blhc 'make', '', 1, $empty; -- 2.45.2