| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This abstracts out the common idiom of loading Config, checking if a particular
key is true, and if not implementing a "skip all" with an appropriate reason.
|
|
|
|
|
|
|
|
|
| |
The tautological 3 way logic
if (...) { print "1..7\n" } elsif (...) { print "1..7\n" } else { ... }
had actually been in the test since it was first added in a43cb6b7285a7b60,
although it was initially "1..4\n" in each block.
Also use plan(), and set test.pl's idea of the current test before exiting.
|
| |
|
| |
|
|
|
|
| |
Use the various skip_all*() functions in test.pl to express the desired intent.
|
|
|
|
|
| |
It's a common idiom in the tests. This makes it easier to find, read, and
remove.
|
|
|
|
|
|
| |
It was inadvertently broken by 2e0cfa16dea85dd3. Many tests still fail, but
that is unrelated to that change. It's more likely that we will remove
-Uuseperlio than fix the tests.
|
| |
|
|
|
|
|
|
|
| |
A change post-5.12 (probably 42607a60df6df19b) caused the documented idiom not
to work if Errno was loaded after the C<exists> code had been compiled, as
the compiler implicitly creates typeglobs in the Errno symbol table when it
builds the optree for the C<exists code>.
|
|
|
|
|
|
|
|
|
|
| |
Mostly minor punctuation changes, but also:
• Some of the ‘new’ features are no longer new.
• Explain that \Q\L\U only apply to literal regexps, not interpolated
ones.
• The charnames pragma is not required for \p
• The section on [:POSIX:] char classes was still explaining 5.6.
|
|
|
|
|
|
|
|
| |
We now (after 816005240f1a3b9989c940e630e829048597537c) will store
them in @INC in Unix format, but either format is legal. We can't
change the values in %Config to be Unix format, though, because
MakeMaker and other utilities may use those to construct paths
for native software that needs them in native format.
|
|
|
|
|
|
|
|
|
|
| |
Now that we have the relevant questions answered before we set
archname, add the appropriate components to archname at the right
time so they'll become part of the architecture-specific
directory names.
FIXME: We don't (yet) set archname64, so at present we're not
adding it to archname.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
By moving these to after other questions have been asked, we can
construct a proper $Config{archname} that indicates threads, long
doubles, multiplicity, or anything else that needs to be appended
to the architecture name.
This means letting go of the ability to configure for a different
architecture than the one you're running on, but that feature is
unlikely to have worked very well in recent years anyway as there
have been an increasing number of features that are not available
on all architectures.
|
|
|
|
|
|
|
|
|
| |
We were only using the base archname (e.g., "VMS_AXP"), which is
ok for a default bulid, but if any additions were made to it,
such as "-thread", there would be a discrepancy between the
actual directory on disk and what perl.c:S_incpush would look for
when loading up @INC. The net effect was that the architecture-
specific directory would not get loaded into @INC.
|
|
|
|
|
|
|
| |
Instead of testing for equality, look for the first minus sign-
delimited element. This means it won't matter which order these
checks are done in relation to adding things like "-thread-multi"
to archname.
|
|
|
|
|
|
|
|
|
|
|
| |
In particular:
• The word ‘substitute’ was misused. I changed it to substitution,
but then realised that it was actually wordy and redundant, so I
removed it.
• The /e modifier does not do an eval{...} or eval '...' or anything
of the sort. s/foo/die/e demonstrates this clearly. (/ee is a diffe-
rent matter, but is not covered in perlretut.)
|
| |
|
|
|
|
| |
In particular, remove the obsolete mention of new features ‘in 5.6.0’.
|
|
|
|
|
|
|
|
|
| |
If Errno is loaded after the compiler has parsed the C<exists &Errno::EBADF>
later in the script, then the intent of that test is subverted - &Errno::EBADF
does not exist, at least as far as the typeglob bound to that op is concerned,
and the test for $! is skipped. I suspect that these have been skipping since
the implementation of Errno was changed in 42607a60df6df19b in May 2010 to
reduce its memory footprint by 55%.
|
|
|
|
| |
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.
|