]> git.refcnt.org Git - colorize.git/commitdiff
Test that debugging builds compile
authorSteven Schubiger <stsc@refcnt.org>
Tue, 16 Dec 2014 18:11:29 +0000 (19:11 +0100)
committerSteven Schubiger <stsc@refcnt.org>
Tue, 16 Dec 2014 18:11:29 +0000 (19:11 +0100)
test.pl

diff --git a/test.pl b/test.pl
index 27f7a67e928dada7e6d8048acae0c195fd611533..959d83f1817bc26acaa5cdd925bef38e5433974a 100755 (executable)
--- a/test.pl
+++ b/test.pl
@@ -10,7 +10,7 @@ use IPC::Open3 qw(open3);
 use Symbol qw(gensym);
 use Test::More;
 
-my $tests = 24;
+my $tests = 25;
 
 my %BUF_SIZE = (
    normal => 1024,
@@ -172,6 +172,12 @@ SKIP: {
         like(qx(valgrind $program none/none $infile1 2>&1 >/dev/null), qr/no leaks are possible/, 'valgrind memleaks');
     }
 
+    {
+        my $debug = tmpnam();
+        is(system("gcc -DDEBUG -o $debug $source"), 0, 'debugging build');
+        unlink $debug if -e $debug;
+    }
+
     print <<'EOT';
 Colors
 ======