This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
t/re/regexp_unicode_prop.t: Add tests
[perl5.git] / t / re / uniprops05.t
CommitLineData
99870f4d
KW
1use strict;
2use warnings;
7976241f 3no warnings 'once';
99870f4d 4
fa2edc1a 5if ($^O eq 'dec_osf') {
877b9829
JH
6 print "1..0 # $^O cannot handle this test\n";
7 exit(0);
fa2edc1a
JH
8}
9
877b9829
JH
10# TODO: it would be good to have watchdog(5 * 60) in here
11# for slow machines, but unfortunately we cannot trivially
12# use test.pl because the TestProp.pl avoids using that.
13
7976241f
FC
14# This is a wrapper for a generated file. Assumes being run from 't'
15# directory.
16
17# It is skipped by default under PERL_DEBUG_READONLY_COW, but you can run
f9ce0dc1 18# it directly via: cd t; ./perl -I../lib ../lib/unicore/TestProp.pl
7976241f
FC
19
20require Config;
21if ($Config::Config{ccflags} =~ /(?:^|\s)-DPERL_DEBUG_READONLY_COW\b/) {
22 print "1..0 # Skip PERL_DEBUG_READONLY_COW\n";
23 exit;
24}
99870f4d 25
5656b1f6 26$::TESTCHUNK=5;
3df51b85 27do '../lib/unicore/TestProp.pl';
99870f4d 28
05a52670
FC
29# Since TestProp.pl explicitly exits, we will only get here if it
30# could not load.
31if (defined &DynaLoader::boot_DynaLoader # not miniperl
32 || eval 'require "unicore/Heavy.pl"' # or tables are built
33) {
34 die "Could not run lib/unicore/TestProp.pl: ", $@||$!;
35}
36else {
37 print "1..0 # Skip Unicode tables not built yet\n";
38}
39
3df51b85 400