summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Refactor t/thread_it.pl to use test.pl's skip_all_*() functions.Nicholas Clark2011-03-071-9/+8
|
* Refactor 4 tests to use skip_all(), instead of longhand code to generate TAP.Nicholas Clark2011-03-074-22/+9
|
* Refactor t/op/getpid.t to use skip_all_if_miniperl() in place of explicit code.Nicholas Clark2011-03-071-4/+1
|
* Replace quit() in t/op/groups.t with test.pl's skip_all()Nicholas Clark2011-03-071-16/+6
|
* Add skip_all_without_config() to test.pl, and use it in 6 tests.Nicholas Clark2011-03-077-34/+22
| | | | | 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.
* Refactor the startup logic in fflush.t to use skip_all()Nicholas Clark2011-03-071-10/+5
| | | | | | | | | 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.
* Refactor 5 tests to use skip_all(), instead of generating TAP locally.Nicholas Clark2011-03-075-29/+15
|
* Refactor t/lib/proxy_constant_subs.t to use skip_all_without_extension()Nicholas Clark2011-03-071-10/+3
|
* Simplify the startup skip logic of tests in t/uni.Nicholas Clark2011-03-079-168/+39
| | | | Use the various skip_all*() functions in test.pl to express the desired intent.
* Add skip_all_without_perlio() to test.pl, and use it in 8 tests.Nicholas Clark2011-03-079-25/+15
| | | | | It's a common idiom in the tests. This makes it easier to find, read, and remove.
* Fix building with -UuseperlioNicholas Clark2011-03-071-0/+4
| | | | | | 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.
* Refactor 6 tests in t/op and t/run to use skip_all_if_miniperl().Nicholas Clark2011-03-076-28/+9
|
* Ensure that the C<exists &Errno::EFOO> idiom continues to work as documented.Nicholas Clark2011-03-072-3/+29
| | | | | | | 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>.
* More changes to perlretutFather Chrysostomos2011-03-061-15/+18
| | | | | | | | | | 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.
* Libraries in @INC may be in Unix or VMS format on VMS.Craig A. Berry2011-03-061-0/+5
| | | | | | | | 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.
* Add appropriate archname appendages in configure.com.Craig A. Berry2011-03-061-4/+37
| | | | | | | | | | 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.
* Reorder archname-related questions in configure.com.Craig A. Berry2011-03-061-332/+336
| | | | | | | | | | | | | 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.
* Use full archname in architecture-specific directories on VMS.Craig A. Berry2011-03-062-8/+7
| | | | | | | | | 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.
* Make archname checks relocatable in configure.com.Craig A. Berry2011-03-061-22/+22
| | | | | | | 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.
* More perlretut tweaksFather Chrysostomos2011-03-061-15/+17
| | | | | | | | | | | 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.)
* perlretut: Mention /pFather Chrysostomos2011-03-061-0/+3
|
* perlretut tweaksFather Chrysostomos2011-03-061-5/+5
| | | | In particular, remove the obsolete mention of new features ‘in 5.6.0’.
* Ensure that t/io/{print,read,say}.t load Errno at BEGIN time.Nicholas Clark2011-03-063-7/+8
| | | | | | | | | 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%.
* 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.