Skip to content

Commit

Permalink
utf8cache.t: Skip only the XS-dependent test
Browse files Browse the repository at this point in the history
  • Loading branch information
Father Chrysostomos committed Aug 31, 2012
1 parent f12ade2 commit 4785469
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion t/op/utf8cache.t
Expand Up @@ -5,13 +5,15 @@ BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
require './test.pl';
skip_all_without_dynamic_extension('Devel::Peek');
}

use strict;

plan(tests => 2);

SKIP: {
skip_without_dynamic_extension("Devel::Peek");

my $pid = open CHILD, '-|';
die "kablam: $!\n" unless defined $pid;
unless ($pid) {
Expand All @@ -36,6 +38,8 @@ my $utf8magic = qr{ ^ \s+ MAGIC \s = .* \n

unlike($_, qr{ $utf8magic $utf8magic }x);

} # SKIP

# With bad caching, this code used to go quadratic and take 10s of minutes.
# The 'test' in this case is simply that it doesn't hang.

Expand Down

0 comments on commit 4785469

Please sign in to comment.