diff options
author | Steven Schubiger <stsc@refcnt.org> | 2016-10-01 17:57:30 +0200 |
---|---|---|
committer | Steven Schubiger <stsc@refcnt.org> | 2016-10-01 17:57:30 +0200 |
commit | e644ee656f5a2ec2dabe74dc14e432b336082cbf (patch) | |
tree | 3556316eb195b58c362c2922c4aa6e80df09f6a4 /lib/Colorize | |
parent | 77f3034f313600e3d030948dd228a5325d5b4da0 (diff) | |
download | colorize-e644ee656f5a2ec2dabe74dc14e432b336082cbf.tar.gz colorize-e644ee656f5a2ec2dabe74dc14e432b336082cbf.tar.bz2 |
Run tests through valgrind
Diffstat (limited to 'lib/Colorize')
-rw-r--r-- | lib/Colorize/Common.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Colorize/Common.pm b/lib/Colorize/Common.pm index e61450b..a60dbe9 100644 --- a/lib/Colorize/Common.pm +++ b/lib/Colorize/Common.pm @@ -11,10 +11,10 @@ our (@EXPORT_OK, %EXPORT_TAGS); my @defaults; @defaults = qw($source $compiler); -@EXPORT_OK = (qw($compiler_flags %BUF_SIZE $write_to_tmpfile), @defaults); +@EXPORT_OK = (qw($compiler_flags %BUF_SIZE $valgrind_command $write_to_tmpfile), @defaults); %EXPORT_TAGS = ('defaults' => [ @defaults ]); -our ($source, $compiler, $compiler_flags, %BUF_SIZE, $write_to_tmpfile); +our ($source, $compiler, $compiler_flags, %BUF_SIZE, $valgrind_command, $write_to_tmpfile); #---------------# # START of data # @@ -27,6 +27,7 @@ $compiler_flags = '-ansi -pedantic -Wall -Wextra -Wformat -Wswitch-default -Wuni normal => 1024, short => 10, ); +$valgrind_command = 'valgrind'; $write_to_tmpfile = sub { my ($content) = @_; |