diff options
author | Nicholas Clark <nick@ccl4.org> | 2010-06-30 19:58:53 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2010-06-30 20:31:35 +0100 |
commit | 849ddec1b3fbb2910a27e5e65275b3164d60285c (patch) | |
tree | b6b6d6400042b88cda03061fd3c2f390f6cbc908 /ext | |
parent | 1275ac73774e6ff47bea052db1ae6f48b7797a4f (diff) | |
download | perl-849ddec1b3fbb2910a27e5e65275b3164d60285c.tar.gz |
Convert POSIX's test to Test::More.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/POSIX/t/is.t | 2 | ||||
-rw-r--r-- | ext/POSIX/t/posix.t | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/ext/POSIX/t/is.t b/ext/POSIX/t/is.t index cb36fb5692..a0f5a45bd6 100644 --- a/ext/POSIX/t/is.t +++ b/ext/POSIX/t/is.t @@ -70,7 +70,7 @@ foreach my $s (keys %classes) { # Expected number of tests is one each for every combination of a # known is<xxx> function and string listed above. -require '../../t/test.pl'; +use Test::More; plan(tests => keys(%classes) * keys(%functions)); diff --git a/ext/POSIX/t/posix.t b/ext/POSIX/t/posix.t index 0800f914b5..32382e82d5 100644 --- a/ext/POSIX/t/posix.t +++ b/ext/POSIX/t/posix.t @@ -8,13 +8,17 @@ BEGIN { } } -BEGIN { require "../../t/test.pl"; } -plan(tests => 66); +use Test::More tests => 66; use POSIX qw(fcntl_h signal_h limits_h _exit getcwd open read strftime write errno); use strict 'subs'; +sub next_test { + my $builder = Test::More->builder; + $builder->current_test($builder->current_test() + 1); +} + $| = 1; $Is_W32 = $^O eq 'MSWin32'; |