platform/upstream/perl.git
13 years agoSkip reg_eval_scope.t under minitest, as it needs charnames.
Nicholas Clark [Fri, 25 Feb 2011 15:53:10 +0000 (15:53 +0000)]
Skip reg_eval_scope.t under minitest, as it needs charnames.

Charnames uses File::Spec, which may not have been build.

13 years agoSkip taint.t and lex_utf8.t under minitest, as both require C<re>.
Nicholas Clark [Fri, 25 Feb 2011 14:59:55 +0000 (14:59 +0000)]
Skip taint.t and lex_utf8.t under minitest, as both require C<re>.

13 years agoSkip reg_fold.t under minitest, as it uses charnames, which uses File::Spec.
Nicholas Clark [Fri, 25 Feb 2011 14:58:58 +0000 (14:58 +0000)]
Skip reg_fold.t under minitest, as it uses charnames, which uses File::Spec.

13 years agoSkip a block of ref.t's tests on minitest, as C<re> may not be available.
Nicholas Clark [Fri, 25 Feb 2011 14:57:57 +0000 (14:57 +0000)]
Skip a block of ref.t's tests on minitest, as C<re> may not be available.

13 years agoCorrect the skip count for t/op/switch.t under minitest.
Nicholas Clark [Fri, 25 Feb 2011 14:56:20 +0000 (14:56 +0000)]
Correct the skip count for t/op/switch.t under minitest.

Skip this section unconditionally under miniperl, rather than assuming that
Scalar::Util will fall back to a pure perl version if "installed" in lib/, but
dynamic loading is unavailable.

13 years agoFix magic.t's expectation for $^X under minitest when the OS makes $^X absolute
Nicholas Clark [Fri, 25 Feb 2011 14:01:43 +0000 (14:01 +0000)]
Fix magic.t's expectation for $^X under minitest when the OS makes $^X absolute

Under minitest, t/perl is a symlink to ../perl. Test scripts are invoked with
./perl. When $Config{d_procselfexe} is undefined, $^X is still ./perl.
When it is defined, the OS resolves it to the absolute path .../miniperl.
Fix t/op/magic.t to be aware of this. Previously it was working for all cases
other than [$Config{d_procselfexe} is defined] and [make minitest] and
[perl does not exist].

13 years agoIn t/ avoid using File::Spec for paths only used by Perl.
Nicholas Clark [Thu, 24 Feb 2011 10:06:35 +0000 (10:06 +0000)]
In t/ avoid using File::Spec for paths only used by Perl.

All platforms Perl builds on can already support Unix-style paths (given that
make_ext.pl is using them). This makes 7 more tests pass under minitest, which
doesn't build File::Spec, because it's part of an XS module.

13 years agoRefactor t/op/time.t to use test.pl's warning_is().
Nicholas Clark [Sun, 6 Mar 2011 09:12:19 +0000 (09:12 +0000)]
Refactor t/op/time.t to use test.pl's warning_is().

13 years agocharset.t: Don't test locale if not working.
Karl Williamson [Sat, 5 Mar 2011 22:01:04 +0000 (15:01 -0700)]
charset.t: Don't test locale if not working.

Commit 09fcee4e4050e683c4608bbadac4c255a63c8ea5 didn't finish the
job.

13 years agoDocument running "make minitest" to test miniperl.
Craig A. Berry [Sun, 6 Mar 2011 03:57:20 +0000 (21:57 -0600)]
Document running "make minitest" to test miniperl.

13 years agoperlfunc tweaks
Father Chrysostomos [Sun, 6 Mar 2011 02:37:04 +0000 (18:37 -0800)]
perlfunc tweaks

Also remove a redundant paragraph from ‘open’.

13 years ago[perl #77384] Passing a ref to warn doesn't append file and line
Father Chrysostomos [Sun, 6 Mar 2011 02:11:52 +0000 (18:11 -0800)]
[perl #77384] Passing a ref to warn doesn't append file and line

This commit makes pp_warn stringify the warning if there is no
$SIG{__WARN__} handler. See the RT ticket for the discussion.

13 years agoMinor spelling fix.
Paul Johnson [Sat, 5 Mar 2011 23:55:21 +0000 (00:55 +0100)]
Minor spelling fix.

13 years ago[perl #85482] Make bmuladd() able to handle third arg properly.
Peter John Acklam [Sun, 6 Mar 2011 00:55:30 +0000 (16:55 -0800)]
[perl #85482] Make bmuladd() able to handle third arg properly.

bmuladd() contains a test to avoid calling objectify() when it isn't
necessary. This test catches too much, so objectify() isn't always called
when it should have been, e.g., when the two first arguments are are
Math::BigInts and the third is something else, a Math::BigInt::Lite for
example. This causes tests in Math::BigInt::Lite to fail (RT #66369). Also
fix bmuladd() in Math::BigFloat since it suffers from the same problem.

13 years ago[perl #85476] Add tests to confirm fix of RT #49569.
Peter John Acklam [Sat, 5 Mar 2011 22:38:36 +0000 (14:38 -0800)]
[perl #85476] Add tests to confirm fix of RT #49569.

Confirm that numify() on a value that can be represented exactly as
a Perl scalar integer is not converted to a floating point number,
e.g., that it returns 18446744073709551615, not 1.84467440737096e+19.

13 years ago[perl #85334] Document actual behaviour of from_xxx() methods.
Peter John Acklam [Sat, 5 Mar 2011 22:15:30 +0000 (14:15 -0800)]
[perl #85334] Document actual behaviour of from_xxx() methods.

Add more precise documentation of the behaviour of from_oct(),
from_hex(), and from_bin().

13 years agoNow that pat_{advanced,rt_report}.t use test.pl, use skip_all_if_miniperl().
Nicholas Clark [Sat, 5 Mar 2011 15:23:42 +0000 (15:23 +0000)]
Now that pat_{advanced,rt_report}.t use test.pl, use skip_all_if_miniperl().

Neither can run during minitest as miniperl can't load support code for %+ and
%-. If your build is so unwell that it's fallen back to minitest, your problems
are bigger than "advanced" regular expression features not working.

13 years agoEliminate t/re/ReTest.pl. require './test.pl' directly in its 3 (former) users.
Nicholas Clark [Sat, 5 Mar 2011 15:13:17 +0000 (15:13 +0000)]
Eliminate t/re/ReTest.pl. require './test.pl' directly in its 3 (former) users.

13 years agoMove setting $IS_ASCII and $IS_EBCDIC from ReTest.pl to test.pl
Nicholas Clark [Sat, 5 Mar 2011 14:54:11 +0000 (14:54 +0000)]
Move setting $IS_ASCII and $IS_EBCDIC from ReTest.pl to test.pl

As test.pl doesn't C<use vars> for either (and shouldn't start), modify the
users to fully qualify the variables, to avoid strict vars errors.

13 years agoEliminate $::ordA from ReTest.pl, inlining its constant value in its only user.
Nicholas Clark [Sat, 5 Mar 2011 14:43:33 +0000 (14:43 +0000)]
Eliminate $::ordA from ReTest.pl, inlining its constant value in its only user.

13 years agoEliminate eval_ok() from ReTest.pl by inlining the logic in the only caller.
Nicholas Clark [Sat, 5 Mar 2011 14:39:23 +0000 (14:39 +0000)]
Eliminate eval_ok() from ReTest.pl by inlining the logic in the only caller.

Refactor the 19 remaining calls into a data driven loop in pat.t, inlining the
eval logic.

13 years agoReplace three uses of eval_ok() with is() as the tested code doesn't die.
Nicholas Clark [Sat, 5 Mar 2011 13:48:43 +0000 (13:48 +0000)]
Replace three uses of eval_ok() with is() as the tested code doesn't die.

It's not clear whether the code ever threw exceptions. Not using eval_ok() here
makes subsequent refactoring a lot simpler.

13 years agoRefactor some calls to eval_ok() into is(eval $foo ...) and is($@, '') pairs.
Nicholas Clark [Sat, 5 Mar 2011 13:30:48 +0000 (13:30 +0000)]
Refactor some calls to eval_ok() into is(eval $foo ...) and is($@, '') pairs.

This gives better diagnostics on failure.

13 years agoAdd warnings_like() in test.pl to replace must_warn() in ReTest.pl.
Nicholas Clark [Sat, 5 Mar 2011 13:03:03 +0000 (13:03 +0000)]
Add warnings_like() in test.pl to replace must_warn() in ReTest.pl.

warnings_like() provides a subset of the functionality of the routine of the
same name in Test::Warn.

13 years agoAdd warning_like() in test.pl to replace some uses of ReTest.pl's must_warn().
Nicholas Clark [Sat, 5 Mar 2011 12:19:53 +0000 (12:19 +0000)]
Add warning_like() in test.pl to replace some uses of ReTest.pl's must_warn().

warning_like() provides a subset of the functionality of the routine of the
same name in Test::Warn. Remove the definition of must_warn() in t/re/subst.t,
which had been copied from t/re/ReTest.pl from when ReTest.pl and test.pl
clashed.

13 years agoIn pat_advanced.t, refactor 6 calls to must_warn() into a loop.
Nicholas Clark [Sat, 5 Mar 2011 12:04:03 +0000 (12:04 +0000)]
In pat_advanced.t, refactor 6 calls to must_warn() into a loop.

13 years agoImprove warning_is() to verify that exactly 0 or 1 warning has been seen.
Nicholas Clark [Sat, 5 Mar 2011 11:04:44 +0000 (11:04 +0000)]
Improve warning_is() to verify that exactly 0 or 1 warning has been seen.

13 years agoAdd warning_is() in test.pl to replace may_not_warn() in ReTest.pl.
Nicholas Clark [Sat, 5 Mar 2011 10:57:43 +0000 (10:57 +0000)]
Add warning_is() in test.pl to replace may_not_warn() in ReTest.pl.

warning_is() provides a subset of the functionality of the routine of the same
name in Test::Warn.

13 years agoEliminate must_die() from ReTest.pl, which is only used 3 times in pat.t
Nicholas Clark [Sat, 5 Mar 2011 10:44:50 +0000 (10:44 +0000)]
Eliminate must_die() from ReTest.pl, which is only used 3 times in pat.t

Replace it with is(eval ..., undef); like($@, $error);

It's not viable to emulate Test::Exception's throws_ok() in test.pl, as it
only takes a code reference, whereas these tests are for compilation errors
and so use string eval.

13 years agoMove the loading of %Config from ReTest.pl to the only use point in pat.t
Nicholas Clark [Sat, 5 Mar 2011 10:07:01 +0000 (10:07 +0000)]
Move the loading of %Config from ReTest.pl to the only use point in pat.t

13 years agoPrune redundant blank lines.
Nicholas Clark [Sat, 5 Mar 2011 06:42:00 +0000 (06:42 +0000)]
Prune redundant blank lines.

13 years agot/re/pat_{psycho,re_eval,special_cc}.t can use test.pl direct.
Nicholas Clark [Sat, 5 Mar 2011 06:32:07 +0000 (06:32 +0000)]
t/re/pat_{psycho,re_eval,special_cc}.t can use test.pl direct.

They no longer use any of the extra functions of ReTest.pl

13 years agoEliminate the placeholder text 'Noname test'.
Nicholas Clark [Sat, 5 Mar 2011 06:23:18 +0000 (06:23 +0000)]
Eliminate the placeholder text 'Noname test'.

It's no longer needed now that the migration from ReTest.pl's TAP generation
functions is completed.

13 years agoEliminate iseq() from ReTest.pl by changing all callers to use is().
Nicholas Clark [Sat, 5 Mar 2011 06:08:18 +0000 (06:08 +0000)]
Eliminate iseq() from ReTest.pl by changing all callers to use is().

13 years agoEliminate nok() from ReTest.pl by refactoring all uses to other test functions.
Nicholas Clark [Sat, 5 Mar 2011 05:38:18 +0000 (05:38 +0000)]
Eliminate nok() from ReTest.pl by refactoring all uses to other test functions.

13 years agoRefactor ReTest.pl to use test.pl for testing functions and TAP generation.
Nicholas Clark [Fri, 4 Mar 2011 22:32:24 +0000 (22:32 +0000)]
Refactor ReTest.pl to use test.pl for testing functions and TAP generation.

Provide compatibility implementations of nok(), and iseq(), which will be
removed once their callers are refactored. Eliminate isneq(), which is now
unused.

13 years agoSlight tweaks to regexp tests so that they still produce sane TAP with test.pl
Nicholas Clark [Fri, 4 Mar 2011 21:55:46 +0000 (21:55 +0000)]
Slight tweaks to regexp tests so that they still produce sane TAP with test.pl

Explicitly escape non-printable characters in test descriptions, instead of
relying on some part of the TAP generation code to do so. Use diag() instead of
passing 3 arguments to ok(). Add a mininal diag() implementation to ReTest.pl

13 years agoUse $::TODO, instead of $TODO, and relying on use vars '$TODO' in ReTest.pl
Nicholas Clark [Fri, 4 Mar 2011 22:02:23 +0000 (22:02 +0000)]
Use $::TODO, instead of $TODO, and relying on use vars '$TODO' in ReTest.pl

13 years agoRemove the line number from the test description output by ReTest.pl
Nicholas Clark [Fri, 4 Mar 2011 20:47:28 +0000 (20:47 +0000)]
Remove the line number from the test description output by ReTest.pl

This means that the TAP it generates is much closer to that generated by
test.pl

13 years agoEliminate the global override $BugId from t/re/ReTest.pl
Nicholas Clark [Fri, 4 Mar 2011 18:25:15 +0000 (18:25 +0000)]
Eliminate the global override $BugId from t/re/ReTest.pl

13 years agoEliminate use of $::BugId in t/re/pat_rt_report.t
Nicholas Clark [Fri, 4 Mar 2011 18:24:19 +0000 (18:24 +0000)]
Eliminate use of $::BugId in t/re/pat_rt_report.t

Pass the message in explicitly to the test functions. Change to use test.pl
compatible functions where appropriate. For now avoid renumbering lines, or
any other change that changes the generated TAP output. (Hence no splitting
tests, and adding the seemingly useless 'Noname test;', as that was what
t/re/ReTest.pl's _ok() was defaulting to)

13 years agoEliminate use of $::BugId in t/re/pat_re_eval.t
Nicholas Clark [Fri, 4 Mar 2011 16:14:20 +0000 (16:14 +0000)]
Eliminate use of $::BugId in t/re/pat_re_eval.t

Pass the message in explicitly to the test functions. Change to use test.pl
compatible functions where appropriate. For now avoid renumbering lines, or
any other change that changes the generated TAP output. (Hence no splitting
tests, and adding the seemingly useless 'Noname test;', as that was what
t/re/ReTest.pl's _ok() was defaulting to)

13 years agoEliminate the global override $Message from t/re/ReTest.pl
Nicholas Clark [Fri, 4 Mar 2011 16:04:21 +0000 (16:04 +0000)]
Eliminate the global override $Message from t/re/ReTest.pl

13 years agoEliminate use of $::Message in t/re/pat_re_eval.t
Nicholas Clark [Fri, 4 Mar 2011 16:03:37 +0000 (16:03 +0000)]
Eliminate use of $::Message in t/re/pat_re_eval.t

Pass the message in explicitly to the test functions. Change to use test.pl
compatible functions where appropriate. For now avoid renumbering lines, or
any other change that changes the generated TAP output. (Hence no splitting
tests.)

13 years agoEliminate use of $::Message in t/re/pat_rt_report.t
Nicholas Clark [Fri, 4 Mar 2011 15:31:17 +0000 (15:31 +0000)]
Eliminate use of $::Message in t/re/pat_rt_report.t

Pass the message in explicitly to the test functions. Change to use test.pl
compatible functions where appropriate. For now avoid renumbering lines, or
any other change that changes the generated TAP output. (Hence no splitting
tests.)

13 years agoEliminate use of $::Message in t/re/pat_advanced.t
Nicholas Clark [Fri, 4 Mar 2011 10:02:36 +0000 (10:02 +0000)]
Eliminate use of $::Message in t/re/pat_advanced.t

Pass the message in explicitly to the test functions. Change to use test.pl
compatible functions where appropriate. For now avoid renumbering lines, or
any other change that changes the generated TAP output. (Hence no splitting
tests.)

13 years agoEliminate use of $::Message in t/re/pat.t
Nicholas Clark [Thu, 3 Mar 2011 14:45:25 +0000 (14:45 +0000)]
Eliminate use of $::Message in t/re/pat.t

Pass the message in explicitly to the test functions. Change to use test.pl
compatible functions where appropriate. For now avoid renumbering lines, or
any other change that changes the generated TAP output. (Hence no splitting of
tests.)

13 years agoIn ReTest.pl, provide is(), isnt(), like() and unlike(), equivalent to test.pl
Nicholas Clark [Thu, 3 Mar 2011 14:44:31 +0000 (14:44 +0000)]
In ReTest.pl, provide is(), isnt(), like() and unlike(), equivalent to test.pl

This will ease the migration of the users of ReTest.pl to test.pl

13 years agoIn ReTest.pl, convert iseq() and isneq() to the same logic as test.pl's is/isnt
Nicholas Clark [Wed, 2 Mar 2011 16:23:17 +0000 (16:23 +0000)]
In ReTest.pl, convert iseq() and isneq() to the same logic as test.pl's is/isnt

Previously both would stringify first, then compare, which would mean that
any overloaded objects would have their stringify method called, instead of
'eq' or 'ne'.

13 years agoIn test.pl, change like() and unlike() to avoid copying the tested scalar.
Nicholas Clark [Thu, 3 Mar 2011 08:30:16 +0000 (08:30 +0000)]
In test.pl, change like() and unlike() to avoid copying the tested scalar.

This means that side effects of matching regexps on it are maintained,
specifically the value of pos, making test.pl more useful for tests in t/re.

This is a subtle divergence from the behaviour of Test::More::{like,unlike}

13 years ago59d6f6a4c05afa7f was too aggressive, as it disabled #! line -I on miniperl
Nicholas Clark [Sat, 5 Mar 2011 19:59:42 +0000 (19:59 +0000)]
59d6f6a4c05afa7f was too aggressive, as it disabled #! line -I on miniperl

Restore -I processing on the #! line for miniperl. This gets t/run/switchI.t
and t/run/switchd-78586.t passing again under minitest.

13 years agoFix podchecker warnings.
Michael Stevens [Mon, 28 Feb 2011 14:23:52 +0000 (14:23 +0000)]
Fix podchecker warnings.

Fix warnings due to empty lines containing whitespace in
Porting/epigraphs.pod.

13 years agoAvoid miniperl SEGVing when processing -I on the #! line
Nicholas Clark [Sat, 5 Mar 2011 18:14:47 +0000 (18:14 +0000)]
Avoid miniperl SEGVing when processing -I on the #! line

A side-effect of change 3185893b8dec1062 was to force av in S_incpush() to be
NULL, whilst other flag variables were still set as if it were non-NULL, for
certain cases, only when compiled with -DPERL_IS_MINIPERL

The "obvious" fix is to also set all the flag variables to 0 under
-DPERL_IS_MINIPERL, to make everything consistent. However, this confuses (at
least) the local version of gcc, which issues warnings about passing a NULL
value (av, known always to be NULL) as a not-NULL parameter, despite the fact
that all the relevant calls are inside blocks which are actually dead code,
due to the if() conditions being const variables set to 0 under
-DPERL_IS_MINIPERL.

So to avoid future bug reports about compiler warnings, the least worst thing
to do seems to be to use #ifndef to use the pre-processor to eliminate the
dead code, and related variables.

13 years agoIn S_incpush, unixify libdir earlier.
Craig A. Berry [Fri, 4 Mar 2011 22:44:24 +0000 (16:44 -0600)]
In S_incpush, unixify libdir earlier.

This allows, for example, -I[.lib] to have Unix format appendages
added, such as "/buildcustomize.pl", "/sitecustomize.pl", etc.

It was previously only being converted to Unix syntax to allow the addition
of subdirectories, but the number of things that want to glue pieces onto
lib/ have multiplied over the years.

13 years agoIn S_incpush, omit subdirs when PERL_IS_MINIPERL.
Craig A. Berry [Fri, 4 Mar 2011 22:35:16 +0000 (16:35 -0600)]
In S_incpush, omit subdirs when PERL_IS_MINIPERL.

The new logic in S_parse_body that loads lib/buildcustomize.pl in
miniperl relies on lib being in $INC[0], which it won't be if we've
loaded version- and architecture-specific directories before lib.

Since miniperl isn't installed and can't do dynamic loading, it
doesn't really need those subdirectories, so skip loading them
for miniperl.

13 years agoperldelta entry for c707cf8e56262e82a832f4b1eceb109bee32ec3a
Karl Williamson [Fri, 4 Mar 2011 02:54:02 +0000 (19:54 -0700)]
perldelta entry for c707cf8e56262e82a832f4b1eceb109bee32ec3a

13 years agoUCD.pm: All code points are in some block
Karl Williamson [Fri, 4 Mar 2011 02:10:06 +0000 (19:10 -0700)]
UCD.pm: All code points are in some block

Code points that are not in a block are considered to be in the
pseudo-block 'No_Block' by the Unicode standard; so change to do that
instead of 'undef'

13 years agoUCD.pm: All code points have a script
Karl Williamson [Fri, 4 Mar 2011 02:02:37 +0000 (19:02 -0700)]
UCD.pm: All code points have a script

Unassigned code points have the script 'Unknown'; not undef

13 years agoUCD.pm: Nits in pod
Karl Williamson [Fri, 4 Mar 2011 02:01:34 +0000 (19:01 -0700)]
UCD.pm: Nits in pod

13 years agoUCD.pm: Fix typos in pod
Karl Williamson [Fri, 4 Mar 2011 01:42:30 +0000 (18:42 -0700)]
UCD.pm: Fix typos in pod

13 years agoUCD.pm: Remove reliance on UnicodeData.txt
Karl Williamson [Fri, 4 Mar 2011 01:33:18 +0000 (18:33 -0700)]
UCD.pm: Remove reliance on UnicodeData.txt

In doing so, there were a number of bug fixes made, as it now relies
on files processed by mktables, which has intelligence to fix a
number of problems with UnicodeData.txt.

This is essentially a rewrite of charinfo().  It previously had
hard-coded the ranges in UnicodeData.txt, instead of examining the file
to see what was there.  This had not been updated for some time, and was
out-of-date, with the result that the newer ranges (all CJK) were quite
wrong.  The new code does not have such reliance, and so new versions
of Unicode should not break this, like they previously would

This may be slower than what was previously there, as it reads several
smaller files instead of one very large one.  But the principal reason
to do this work was to save disk space.  It was previously thought that
the function could continue to use UnicodeData.txt if it exists on the
machine, but this would have required fixing all the bugs that this
automatically fixes by using the processed files.

13 years agoUCD.pm: Use subclassed warnings
Karl Williamson [Fri, 4 Mar 2011 01:02:03 +0000 (18:02 -0700)]
UCD.pm: Use subclassed warnings

5.14 subclasses some UTF8 warnings, so that they can be turned off
more precisely.

13 years agoUCD.pm: Use traditional casing for script names
Karl Williamson [Fri, 4 Mar 2011 01:00:08 +0000 (18:00 -0700)]
UCD.pm: Use traditional casing for script names

For some reason UCD.pm has lowercased the first letters of the
non-first word in script names.  For backwards compatibility, continue
to do so.

13 years agomktables: Write Unicode_1_Name table for UCD.pm
Karl Williamson [Fri, 4 Mar 2011 00:57:29 +0000 (17:57 -0700)]
mktables: Write Unicode_1_Name table for UCD.pm

13 years agomktables: Add override for map tables output
Karl Williamson [Fri, 4 Mar 2011 00:48:04 +0000 (17:48 -0700)]
mktables: Add override for map tables output

This adds a hash so can more precisely control which map tables
get output and which are documented.  The hash is populated to
suppress some messages and some tables that are redundant.

13 years agomktables: White-space only
Karl Williamson [Fri, 4 Mar 2011 00:31:15 +0000 (17:31 -0700)]
mktables: White-space only

The previous patch introduced a closure, and this patch indents
the code in that closure.

13 years agomktables: Add tables of just simple case foldings
Karl Williamson [Fri, 4 Mar 2011 00:20:37 +0000 (17:20 -0700)]
mktables: Add tables of just simple case foldings

This adds three tables for lc, uc, and title, which are the simple
mappings that are overridden by full mappings.  These are quite
tiny, and will be used by UCD.pm to avoid using UnicodeData.txt

13 years agoUCD.t: Add test for non-Unicode code point
Karl Williamson [Thu, 3 Mar 2011 23:53:20 +0000 (16:53 -0700)]
UCD.t: Add test for non-Unicode code point

13 years agoUCD.pm" remove no longer used variable
Karl Williamson [Thu, 3 Mar 2011 23:48:47 +0000 (16:48 -0700)]
UCD.pm" remove no longer used variable

13 years agomktables: Move some definitions to earlier
Karl Williamson [Thu, 3 Mar 2011 23:27:31 +0000 (16:27 -0700)]
mktables: Move some definitions to earlier

13 years agoUCD.t: Fix a test description
Karl Williamson [Thu, 3 Mar 2011 23:20:24 +0000 (16:20 -0700)]
UCD.t: Fix a test description

13 years agoUCD.pm: Nits in pod and comment
Karl Williamson [Thu, 3 Mar 2011 23:17:55 +0000 (16:17 -0700)]
UCD.pm: Nits in pod and comment

13 years agoUpdate Digest-SHA to CPAN version 5.60
Chris 'BinGOs' Williams [Thu, 3 Mar 2011 18:19:14 +0000 (18:19 +0000)]
Update Digest-SHA to CPAN version 5.60

  [DELTA]

  5.60  Thu Mar  3 05:26:42 MST 2011
  - added new SHA-512/224 and SHA-512/256 transforms
    -- ref. NIST Draft FIPS 180-4 (February 2011)
  - simplified shasum by removing duplicative text
  - improved efficiency of Addfile
    -- expensive -T test now occurs only in portable mode

13 years agoSimplify the code for a group of tests in pat_advanced.t
Nicholas Clark [Thu, 3 Mar 2011 16:09:35 +0000 (16:09 +0000)]
Simplify the code for a group of tests in pat_advanced.t

13 years agoIn ReTest.pl's must_warn(), ignore $::Message.
Nicholas Clark [Thu, 3 Mar 2011 14:38:54 +0000 (14:38 +0000)]
In ReTest.pl's must_warn(), ignore $::Message.

Every caller was setting $name, so $::Message was never used.

13 years agoIn ReTest.pl's may_not_warn(), eliminate the use of $::Message.
Nicholas Clark [Thu, 3 Mar 2011 14:27:34 +0000 (14:27 +0000)]
In ReTest.pl's may_not_warn(), eliminate the use of $::Message.

For the one caller using the global variable, instead pass the message in as
a function parameter.

13 years agoEliminate the unused global override $WarnPattern from ReTest.pl
Nicholas Clark [Thu, 3 Mar 2011 11:57:29 +0000 (11:57 +0000)]
Eliminate the unused global override $WarnPattern from ReTest.pl

13 years agoEliminate the global override $DiePattern from t/re{ReTest.pl,pat.t}
Nicholas Clark [Thu, 3 Mar 2011 11:44:46 +0000 (11:44 +0000)]
Eliminate the global override $DiePattern from t/re{ReTest.pl,pat.t}

For the only user of this, instead explicitly pass the value into must_die()
As must_die() is always passed $name, eliminate its use of $Message.

13 years agomktables: force code point tables are range size 1
Karl Williamson [Thu, 3 Mar 2011 05:14:24 +0000 (22:14 -0700)]
mktables: force code point tables are range size 1

As stated in the comment, the Perl core is expecting a different
range value definition than this program outputs.  But this isn't a
problem if the range size is set to 1.  Currently the core only reads in
tables that map to code points, so do it only for them.

13 years agomktables: Nits in comment, white space
Karl Williamson [Thu, 3 Mar 2011 05:07:27 +0000 (22:07 -0700)]
mktables: Nits in comment, white space

13 years agoUCD.pm: nits in comments and pod
Karl Williamson [Thu, 3 Mar 2011 05:05:29 +0000 (22:05 -0700)]
UCD.pm: nits in comments and pod

13 years agoregexec.c: Remove '#if 0' code
Karl Williamson [Thu, 3 Mar 2011 05:02:12 +0000 (22:02 -0700)]
regexec.c: Remove '#if 0' code

This code was retained for a while until it was clear that the replacement
code worked.

13 years agoregcomp.c: Remove #if 0 code
Karl Williamson [Thu, 3 Mar 2011 05:00:36 +0000 (22:00 -0700)]
regcomp.c: Remove #if 0 code

This code is obsolete, as new code has been written to do folding;
now that smokes are all passing with that new code, there is no point to
retaining the old.

13 years agoEliminate the global error override $Error from t/re{ReTest.pl,pat.t}
Nicholas Clark [Wed, 2 Mar 2011 17:25:17 +0000 (17:25 +0000)]
Eliminate the global error override $Error from t/re{ReTest.pl,pat.t}

For the 5 use points, convey the information by appending to $Message, which
all are already using.

13 years agoSimplify pat.t by removing a loop over 2 items, which is mostly if/else
Nicholas Clark [Wed, 2 Mar 2011 17:15:19 +0000 (17:15 +0000)]
Simplify pat.t by removing a loop over 2 items, which is mostly if/else

13 years agoRevert "In File::Copy, convert two regexps to explicit ranges, instead of using /i"
Karl Williamson [Wed, 2 Mar 2011 15:15:55 +0000 (08:15 -0700)]
Revert "In File::Copy, convert two regexps to explicit ranges, instead of using /i"

This reverts commit 7b7d8b152c027b50b260244da6f7c17a010279d6.
The performance issue that prompted this commit has been fixed.

13 years agoRevert "In Cwd, convert two regexps to explicit ranges, instead of using /i"
Karl Williamson [Wed, 2 Mar 2011 15:15:05 +0000 (08:15 -0700)]
Revert "In Cwd, convert two regexps to explicit ranges, instead of using /i"

This reverts commit be6c6a23f06d680159ce323c1906d297abbe85cd.
The performance issue that prompted this commit has been fixed.

13 years agoFix the TODO handling in t/re/ReTest.pl's skip()
Nicholas Clark [Wed, 2 Mar 2011 13:46:10 +0000 (13:46 +0000)]
Fix the TODO handling in t/re/ReTest.pl's skip()

It now does TODO & SKIP. However, currently I believe that nothing that uses it
is calling skip() with a TODO test.

13 years agoConvert taint.t to lexical file and directory handles, and 3 argument open.
Nicholas Clark [Mon, 28 Feb 2011 16:31:19 +0000 (16:31 +0000)]
Convert taint.t to lexical file and directory handles, and 3 argument open.

Retain tainting tests for package filehandles - augment these with analogous
tests for lexical filehandles.

Drop the use of File::Spec::Functions to determine a portable path for
'./TEST', added as part of the MacOS classic porting. We haven't built on
classic for many years, and the change itself was over-engineering - the
better fix at the time would have been to replace './TEST' with 'TEST'.

13 years agoIn taint.t, convert the Fcntl and *printf tests to violates_taint().
Nicholas Clark [Mon, 28 Feb 2011 16:08:29 +0000 (16:08 +0000)]
In taint.t, convert the Fcntl and *printf tests to violates_taint().

13 years agoIn taint.t, violates_taint() now tests more of the "insecure dependency" error.
Nicholas Clark [Mon, 28 Feb 2011 14:49:43 +0000 (14:49 +0000)]
In taint.t, violates_taint() now tests more of the "insecure dependency" error.

Use the second parameter to determine the string to look for in the error
message, and add an optional third parameter for the test description, if it
should differ from the error message string.

13 years agoIn taint.t, add violates_taint(), to replace a repeated is()/like() pair.
Nicholas Clark [Mon, 28 Feb 2011 14:44:38 +0000 (14:44 +0000)]
In taint.t, add violates_taint(), to replace a repeated is()/like() pair.

13 years agoIn taint.t, avoid using ok() where better test functions are more suitable.
Nicholas Clark [Mon, 28 Feb 2011 13:22:34 +0000 (13:22 +0000)]
In taint.t, avoid using ok() where better test functions are more suitable.

13 years agoIn taint.t, replace C<not any_tainted(..)> with calls to isnt_tainted()
Nicholas Clark [Mon, 28 Feb 2011 13:17:14 +0000 (13:17 +0000)]
In taint.t, replace C<not any_tainted(..)> with calls to isnt_tainted()

Change tainted() to perform the actual test for tainting, eliminate all other
uses of any_tainted() and remove it.

13 years agoIn taint.t, replace calls to all_tainted() with a loop over is_tainted().
Nicholas Clark [Mon, 28 Feb 2011 11:57:32 +0000 (11:57 +0000)]
In taint.t, replace calls to all_tainted() with a loop over is_tainted().

13 years agoAdd {is,isnt}_tainted() to taint.t, to replace use of C<ok(tainted(...))>
Nicholas Clark [Mon, 28 Feb 2011 11:50:38 +0000 (11:50 +0000)]
Add {is,isnt}_tainted() to taint.t, to replace use of C<ok(tainted(...))>

13 years agoConvert taint.t to use test.pl's testing functions.
Nicholas Clark [Sat, 26 Feb 2011 10:46:52 +0000 (10:46 +0000)]
Convert taint.t to use test.pl's testing functions.

This eliminates the local sub test().

13 years agoUpdate perldelta for Locale::Codes update
Chris 'BinGOs' Williams [Tue, 1 Mar 2011 21:39:52 +0000 (21:39 +0000)]
Update perldelta for Locale::Codes update

13 years agoPATCH: Bump Locale-Codes from 3.15 to 3.16
Sullivan Beck [Tue, 1 Mar 2011 21:05:43 +0000 (16:05 -0500)]
PATCH: Bump Locale-Codes from 3.15 to 3.16

Attached is a patch to upgrade the Locale-Codes distribution (containing
the core modules Locale::Country, Locale::Language, and
Locale::Currency) to the most recent version.

====
Background:

The core modules Locale::Country, Locale::Language, and Locale::Currency
(all part of the Locale-Codes distribution) should be updated on a
regular basis. They contain "codes" from various internet standards
which change over time.

I plan on releasing new versions at least twice a year to keep the codes
up-to-date. At this point, I'm not planning on any significant code
changes (other than bug fixes), so the only significant changes
between releases should be to update the codes.

!DSPAM:4d6d635562584214713763!

>From 5f7e59eac34b1b322f80686fbf431569789c222a Mon Sep 17 00:00:00 2001
From: Sullivan Beck <sbeck@cpan.org>
Date: Tue, 1 Mar 2011 15:56:18 -0500
Subject: [PATCH] Bump Locale-Codes from 3.15 to 3.16

Signed-off-by: Chris 'BinGOs' Williams <chris@bingosnet.co.uk>
13 years agotoke.c: Raise error for multiple regexp mods
Karl Williamson [Tue, 1 Mar 2011 17:03:25 +0000 (10:03 -0700)]
toke.c: Raise error for multiple regexp mods

When the new regular expression modifiers being allowed in suffix-form
were added on a very tight schedule, it was with the understanding that
the error checking that only one can occur per regular experssion would
be added later.  This accomplishes that.