mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 22:28:47 -04:00
DBD-SQLite: moved the plan tests calculation out of a BEGIN block, as it uses a variable/configuration initialized outside the block
This commit is contained in:
parent
80bd5e10a0
commit
0db63f3f9e
1 changed files with 3 additions and 4 deletions
|
@ -20,14 +20,13 @@ my @regexes = qw( ^b\\w+ (?i:^b\\w+) );
|
||||||
|
|
||||||
BEGIN {
|
BEGIN {
|
||||||
if ($] < 5.008005) {
|
if ($] < 5.008005) {
|
||||||
plan skip_all => 'Unicode is not supported before 5.8.5'
|
plan skip_all => 'Unicode is not supported before 5.8.5';
|
||||||
}
|
|
||||||
else {
|
|
||||||
plan tests => 2 * (1 + 2 * @regexes) * @CALL_FUNCS + 1 ;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
use Test::NoWarnings;
|
use Test::NoWarnings;
|
||||||
|
|
||||||
|
plan tests => 2 * (1 + 2 * @regexes) * @CALL_FUNCS + 1;
|
||||||
|
|
||||||
BEGIN {
|
BEGIN {
|
||||||
# Sadly perl for windows (and probably sqlite, too) may hang
|
# Sadly perl for windows (and probably sqlite, too) may hang
|
||||||
# if the system locale doesn't support european languages.
|
# if the system locale doesn't support european languages.
|
||||||
|
|
Loading…
Add table
Reference in a new issue