]> ruderich.org/simon Gitweb - blhc/blhc.git/commitdiff
Add test for possible false-negative in configure check.
authorSimon Ruderich <simon@ruderich.org>
Tue, 28 May 2013 21:12:54 +0000 (23:12 +0200)
committerSimon Ruderich <simon@ruderich.org>
Tue, 28 May 2013 21:12:54 +0000 (23:12 +0200)
t/logs/configure-check [new file with mode: 0644]
t/tests.t

diff --git a/t/logs/configure-check b/t/logs/configure-check
new file mode 100644 (file)
index 0000000..aaee2d1
--- /dev/null
@@ -0,0 +1,5 @@
+dpkg-buildpackage: source package test
+
+# Safety checks to prevent false negatives.
+
+  CC              = gcc -std=gnu99 -std=gnu99 test.c
index f08d8edbfb182ee02f79d4695a56c1db1de6b010..1b3b72b2c3c1b77861d3734cf5e88febdf8ddaa1 100644 (file)
--- 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;