Commit | Line | Data |
---|---|---|
99870f4d KW |
1 | use strict; |
2 | use warnings; | |
7976241f | 3 | no warnings 'once'; |
99870f4d | 4 | |
fa2edc1a | 5 | if ($^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 | |
20 | require Config; | |
21 | if ($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 | 27 | do '../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. | |
31 | if (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 | } | |
36 | else { | |
37 | print "1..0 # Skip Unicode tables not built yet\n"; | |
38 | } | |
39 | ||
3df51b85 | 40 | 0 |