Skip to content

Commit

Permalink
Skip tests that require perl-5.10
Browse files Browse the repository at this point in the history
  • Loading branch information
gisle committed Oct 19, 2010
1 parent 5e9f889 commit b141032
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 3 additions & 2 deletions t/quote-unicode.t
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ BEGIN {
}

use strict;
use Test qw(plan ok);
use Test qw(plan ok skip);

plan tests => 8;

Expand All @@ -25,5 +25,6 @@ $a = "";
$a .= chr($_) for 128 .. 255;
$a .= "\x{FFF}"; chop($a); # upgrade
ok(utf8::is_utf8($a));
ok(dump($a), 'pack("H*","' . join('', map sprintf("%02x", $_), 128..255). '")');
skip($] < 5.010 ? "perl-5.10 required" : "",
dump($a), 'pack("H*","' . join('', map sprintf("%02x", $_), 128..255). '")');
ok(utf8::is_utf8($a));
7 changes: 7 additions & 0 deletions t/vstring.t
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!perl -w

BEGIN {
if ($] < 5.010) {
print "1..0 # Skipped: perl-5.10 required\n";
exit;
}
}

use strict;
use Test;
plan tests => 9;
Expand Down

0 comments on commit b141032

Please sign in to comment.