| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
This reduces the startup boilerplate code by more than half.
|
|
|
|
| |
Use it in t/io/layers.t to skip if Encode is not built.
|
|
|
|
|
|
| |
Skip under minitest using skip_all_if_miniperl().
skip_all() once rather than skipping every test if Encode is not built, or
PerlIO is not available.
|
|
|
|
|
| |
Skip a test under minitest using skip_if_miniperl().
Use eq(), like() and unlike() where appropriate, instead of ok().
|
|
|
|
|
|
|
| |
Remove redundant C<use Config;>
If C<find PerlIO::Layer 'perlio'> fails, use skip() rather than ok() to skip.
Make the indenting on 2 inconsistent lines consistent with the rest of the file.
Die if Errno can't be loaded, unless it's miniperl.
|
| |
|
|
|
|
|
| |
It’s a little more readable if it’s more concise, at least in
this case.
|
|
|
|
|
|
| |
length was returning a temporary copy of undef, this meant it didn't
generate a warning when used uninitialised. Return PL_sv_undef but
also ensure TARG is cleared if needed.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Skip split_unicode.t under minitest, as it uses charnames, which uses
File::Spec, which may not be available.
[Experimentation reveals that git blame by default won't attribute lines past
this commit, unless --find-copies-harder is used. The alternative approach,
copy t/op/split.t as t/op/split_unicode.t as 1 commit, then prune both, fares
no better - by default git blame can't attribute through that *either*.
Again, --find-copies-harder works. Hence, do the partition as this one commit,
as it is simpler, and all other things are equal]
|
|
|
|
|
|
|
| |
The test file is for functions in the re:: namespace implemented in
universal.c, but needs to load re, which isn't built for minitest. As none of
these functions are used as part of the core's build process, seems best to
move it with all the other tests related to the re extension.
|
|
|
|
|
|
|
| |
require File::Spec in an eval. For miniperl, if the eval fails, skip tests
relating to File::Spec->devnull() and needing File::Spec->rel2abs(), and assume
that '.' will work as the current directory. Remove a call to catfile() only
needed for MacOS Classic - every other platform will accept Unix-style paths.
|
|
|
|
|
|
| |
File::Path::rmtree() is only used as a cleanup function of last resort - by
default t/op/mkdir.t directly cleans up the test directory that it creates
before it exits.
|
|
|
|
|
|
|
| |
As a working chdir is a key part of the build process, it would be counter-
productive to skip testing it if the build process failed, because it might be
cause of the problems. So add the source locations for Cwd and File::Spec in
dist/Cwd and dist/Cwd/lib respectively.
|
|
|
|
|
| |
Although File::Spec is pure Perl, it is part of the Cwd distribution, and
that isn't built for minitest. So we can't rely on it.
|
| |
|
|
|
|
|
| |
This is in preparation for giving different descriptions for the
complement case
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[DELTA]
0.73 Sun Mar 6 13:24:22 2011
- DUCET is updated (for Unicode 6.0.0) as Collate/allkeys.txt.
! However no maint perl has supported Unicode 6.0.0 yet;
wait for 5.14, or try developing 5.13.7 or later.
! Please notice that allkeys.txt will be overwritten if you have had
other allkeys.txt already.
- The default UCA_Version is 22. Locale/*.pl and Korean.pm are updated.
- test: compare allkeys.txt's version with Base_Unicode_Version
in t/default.t.
|
| |
|
| |
|
|
|
|
| |
<AANLkTinUkRsb2DLR3LW5VsUETK2K053uMv7mrGUmtQAZ@mail.gmail.com>
|
|
|
|
|
|
| |
98e007d4a6d559b3 missed adding a check that the first $SIG{__DIE__} handler
was never called. While tidying, make the second $e lexical, and check that
the second $SIG{__DIE__} handler remains uncalled at the end of its block.
|
| |
|
|
|
|
| |
The API calls are equivalent, but the object code is slightly smaller.
|
|
|
|
|
|
| |
It uses charnames, which uses File::Spec->file_name_is_absolute().
As regexp_unicode_prop.t now requires test.pl, switch to using $::IS_EBCDIC,
which test.pl sets.
|
| |
|
|
|
|
|
|
| |
The latter is skipped under minitest, as C<re> may not be available.
charnames may also fail to load under minitest, if File::Spec has not been
built. t/re/pat.t should now always run (and pass) under minitest.
|
|
|
|
|
|
| |
This test isn't run under minitest, but use charnames; may well fail before
that skip is encountered, if it fails to load File::Spec. Moving it after
the BEGIN block ensures that the test will always run, or skip cleanly.
|
|
|
|
| |
Charnames uses File::Spec, which may not have been build.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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].
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
Commit 09fcee4e4050e683c4608bbadac4c255a63c8ea5 didn't finish the
job.
|
| |
|
|
|
|
| |
Also remove a redundant paragraph from ‘open’.
|
|
|
|
|
| |
This commit makes pp_warn stringify the warning if there is no
$SIG{__WARN__} handler. See the RT ticket for the discussion.
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Add more precise documentation of the behaviour of from_oct(),
from_hex(), and from_bin().
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
Refactor the 19 remaining calls into a data driven loop in pat.t, inlining the
eval logic.
|
|
|
|
|
| |
It's not clear whether the code ever threw exceptions. Not using eval_ok() here
makes subsequent refactoring a lot simpler.
|
|
|
|
| |
This gives better diagnostics on failure.
|