summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Tidy perlio_open.t, by using test.pl skip_all* functions where appropriate.Nicholas Clark2011-03-061-13/+3
| | | | This reduces the startup boilerplate code by more than half.
* Add skip_all_without_extension() to test.pl, for the common skip idiom.Nicholas Clark2011-03-062-3/+12
| | | | Use it in t/io/layers.t to skip if Encode is not built.
* Tidy t/io/layers.tNicholas Clark2011-03-061-16/+8
| | | | | | 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.
* Tidy t/io/crlf.tNicholas Clark2011-03-061-5/+4
| | | | | Skip a test under minitest using skip_if_miniperl(). Use eq(), like() and unlike() where appropriate, instead of ok().
* Tidy t/io/binmode.tNicholas Clark2011-03-061-15/+13
| | | | | | | 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.
* perlrequick tweaksFather Chrysostomos2011-03-061-6/+8
|
* Reword a perldiag entryFather Chrysostomos2011-03-061-5/+4
| | | | | It’s a little more readable if it’s more concise, at least in this case.
* Fix [perl #85508] regression in print length undefDavid Leadbeater2011-03-062-7/+20
| | | | | | 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.
* Move the tests for split /\s/ and Unicode from split.t to split_unicode.tNicholas Clark2011-03-063-57/+66
| | | | | | | | | | | | 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]
* Move t/re/re.t to ext/re/t/re_funcs_u.t, so that it is not part of minitest.Nicholas Clark2011-03-062-4/+7
| | | | | | | 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.
* Ensure t/op/stat.t passes under minitest if File::Spec is unavailable.Nicholas Clark2011-03-061-8/+16
| | | | | | | 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.
* Ensure t/op/mkdir.t passes under minitest by loading File::Path in an eval.Nicholas Clark2011-03-061-2/+9
| | | | | | 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.
* Ensure that chdir.t can find File::Spec and Cwd under minitestNicholas Clark2011-03-061-2/+7
| | | | | | | 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.
* Under minitest, tests requiring File::Spec->devnull(), as it may not be built.Nicholas Clark2011-03-061-24/+35
| | | | | 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.
* charset.t: Improve diagnostic messagesKarl Williamson2011-03-061-6/+18
|
* charset.t: Group tests by complement/non-Karl Williamson2011-03-061-1/+21
| | | | | This is in preparation for giving different descriptions for the complement case
* Update Unicode-Collate to CPAN version 0.73Chris 'BinGOs' Williams2011-03-0663-24590/+26476
| | | | | | | | | | | | | | [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.
* Mention make test_portingLeon Brocard2011-03-061-0/+2
|
* Add Danny Sadinoff's old email address to Porting/checkAUTHORS.plLeon Brocard2011-03-061-0/+1
|
* Update Danny Sadinoff's email address in AUTHORS, per ↵Leon Brocard2011-03-061-1/+1
| | | | <AANLkTinUkRsb2DLR3LW5VsUETK2K053uMv7mrGUmtQAZ@mail.gmail.com>
* In gv.t, check that the installed $SIG{__DIE__} handler is never called.Nicholas Clark2011-03-061-3/+5
| | | | | | 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.
* A clearer layout for the fall-through logic of Socket::inet_aton()Nicholas Clark2011-03-061-6/+10
|
* In inet_aton(), use newSVpvn_flags() instead of sv_newmortal(), sv_setpvn()Nicholas Clark2011-03-061-3/+1
| | | | The API calls are equivalent, but the object code is slightly smaller.
* Skip regexp_unicode_prop.t under minitest, as File::Spec may not be available.Nicholas Clark2011-03-061-4/+7
| | | | | | 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.
* Skip pat_re_eval.t in minitest, as it uses re, which needs dynamic loading.Nicholas Clark2011-03-061-0/+1
|
* Move two tests using charnames from t/re/pat.t to pat_rt_report.tNicholas Clark2011-03-062-24/+25
| | | | | | 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.
* In fold_grind.t, move the use charnames; after the skip_all_if_miniperl().Nicholas Clark2011-03-061-2/+2
| | | | | | 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.
* Skip reg_eval_scope.t under minitest, as it needs charnames.Nicholas Clark2011-03-061-1/+6
| | | | Charnames uses File::Spec, which may not have been build.
* Skip taint.t and lex_utf8.t under minitest, as both require C<re>.Nicholas Clark2011-03-062-1/+3
|
* Skip reg_fold.t under minitest, as it uses charnames, which uses File::Spec.Nicholas Clark2011-03-061-0/+1
|
* Skip a block of ref.t's tests on minitest, as C<re> may not be available.Nicholas Clark2011-03-061-2/+3
|
* Correct the skip count for t/op/switch.t under minitest.Nicholas Clark2011-03-061-2/+1
| | | | | | 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.
* Fix magic.t's expectation for $^X under minitest when the OS makes $^X absoluteNicholas Clark2011-03-061-3/+2
| | | | | | | | | 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].
* In t/ avoid using File::Spec for paths only used by Perl.Nicholas Clark2011-03-065-19/+9
| | | | | | 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.
* Refactor t/op/time.t to use test.pl's warning_is().Nicholas Clark2011-03-061-10/+4
|
* charset.t: Don't test locale if not working.Karl Williamson2011-03-051-1/+1
| | | | | Commit 09fcee4e4050e683c4608bbadac4c255a63c8ea5 didn't finish the job.
* Document running "make minitest" to test miniperl.Craig A. Berry2011-03-051-0/+7
|
* perlfunc tweaksFather Chrysostomos2011-03-051-18/+9
| | | | Also remove a redundant paragraph from ‘open’.
* [perl #77384] Passing a ref to warn doesn't append file and lineFather Chrysostomos2011-03-052-2/+11
| | | | | This commit makes pp_warn stringify the warning if there is no $SIG{__WARN__} handler. See the RT ticket for the discussion.
* Minor spelling fix.Paul Johnson2011-03-051-1/+1
|
* [perl #85482] Make bmuladd() able to handle third arg properly.Peter John Acklam2011-03-052-12/+2
| | | | | | | | | 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.
* [perl #85476] Add tests to confirm fix of RT #49569.Peter John Acklam2011-03-054-3/+24
| | | | | | 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.
* [perl #85334] Document actual behaviour of from_xxx() methods.Peter John Acklam2011-03-051-0/+13
| | | | | Add more precise documentation of the behaviour of from_oct(), from_hex(), and from_bin().
* Now that pat_{advanced,rt_report}.t use test.pl, use skip_all_if_miniperl().Nicholas Clark2011-03-052-8/+2
| | | | | | 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.
* Eliminate t/re/ReTest.pl. require './test.pl' directly in its 3 (former) users.Nicholas Clark2011-03-055-19/+3
|
* Move setting $IS_ASCII and $IS_EBCDIC from ReTest.pl to test.plNicholas Clark2011-03-055-22/+17
| | | | | 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.
* Eliminate $::ordA from ReTest.pl, inlining its constant value in its only user.Nicholas Clark2011-03-052-5/+4
|
* Eliminate eval_ok() from ReTest.pl by inlining the logic in the only caller.Nicholas Clark2011-03-052-34/+33
| | | | | Refactor the 19 remaining calls into a data driven loop in pat.t, inlining the eval logic.
* Replace three uses of eval_ok() with is() as the tested code doesn't die.Nicholas Clark2011-03-051-6/+6
| | | | | It's not clear whether the code ever threw exceptions. Not using eval_ok() here makes subsequent refactoring a lot simpler.
* Refactor some calls to eval_ok() into is(eval $foo ...) and is($@, '') pairs.Nicholas Clark2011-03-052-11/+22
| | | | This gives better diagnostics on failure.