]> git.refcnt.org Git - colorize.git/commitdiff
Switch from TAP::Harness to Test::Harness
authorSteven Schubiger <stsc@refcnt.org>
Mon, 17 Aug 2015 18:17:03 +0000 (20:17 +0200)
committerSteven Schubiger <stsc@refcnt.org>
Mon, 17 Aug 2015 18:17:03 +0000 (20:17 +0200)
in order to increase portability.

test.pl

diff --git a/test.pl b/test.pl
index 32b1b51ce3c6ba08b8df0c97a2c4580c52b89707..9b0a64ff3386c5726fcc4fa3565e1af0774d6cc6 100755 (executable)
--- a/test.pl
+++ b/test.pl
@@ -8,7 +8,7 @@ use constant false => 0;
 use File::Temp qw(tempfile tempdir tmpnam);
 use IPC::Open3 qw(open3);
 use Symbol qw(gensym);
-use TAP::Harness;
+use Test::Harness qw(runtests);
 use Test::More;
 
 my $tests = 25;
@@ -32,9 +32,8 @@ my $write_to_tmpfile = sub
 };
 
 {
-    my @tests = glob('t/*.t');
-    my $harness = TAP::Harness->new;
-    $harness->runtests(@tests);
+    my @test_files = glob('t/*.t');
+    runtests(@test_files);
 }
 
 plan tests => $tests;