summaryrefslogtreecommitdiff
path: root/t/run/fresh_perl.t
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite csh_glob in C; fix two quoting bugsFather Chrysostomos2011-10-261-43/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit rewrites File::Glob::csh_glob (which implements perl’s default globbing behaviour) in C. This fixes a problem introduced by 0b0e6d70f. If there is an unmatched quotation mark, all attempts to parse the pattern are discarded and it is treated as a single token. Prior to 0b0e6d70f, whitespace was stripped from both ends in that case. As of 0b0e6d70f, it was only stripped from the beginning. This commit restores the pre-0b0e6d70f behaviour with unmatched quotes. It doesn’t take 'a"b\ ' into account (where the space is escaped), but that wasn’t handled properly before 0b0e6d70f, either. This also finishes making csh_glob consistent with regard to quota- tion marks. Commit 0b0e6d70f attempted to do that, but did not strip out medial quotation marks, as in a"b"c. Text::ParseWords does not provide an interface for stripping out quotation marks but leaving backslashes, which I tried to work around, not fully understanding the implications. Anyway, this new C implementation doesn’t use Text::ParseWords. The latter fix caused a test failure, but that test was there to make sure the behaviour didn’t change depending on whether File::Glob was loaded before the first mention of glob(). (In 5.6, loading File::Glob first would make perl revert to external csh glob, ironic- ally enough.) This commit modifies the test to test for sameness, rather than exact output. In fact, this change causes perl and miniperl to be consistent, and probably also causes glob to be more consistent across platforms (think of VMS). Another effect of the translation to C is that the Unicode Bug is fixed with regard to splitting patterns. The C code effectively does /\s/a now (which I believe is the only sane behaviour in this case), instead of treating the string differently depending on the UTF8 flag. The Unicode Bug is still present with regard to actual globbing. This commit introduces one regression. This code: undef %File::Glob::; glob("nometachars"); will no longer return anything, because csh_glob no longer holds a reference count on the $File::Glob::DEFAULT_FLAGS glob. Any code that does that is beyond crazy. The big advantage to this patch is speed. Something like ‘@files = <*>’ is 18% faster in a folder of 300 files. For smaller folders there should be an even more notable difference.
* Move the test for 078c425b721ea35d from fresh_perl.t to pat_rt_report.tNicholas Clark2011-03-071-17/+0
| | | | | | It happens to be the only test in fresh_perl.t that skips on miniperl. pat_rt_report.t automatically skips on miniperl, and isn't exclusively for bugs reported via RT.
* Fix typos (spelling errors) in t/*.Peter J. Acklam) (via RT2011-01-071-1/+1
| | | | | | | # New Ticket Created by (Peter J. Acklam) # Please include the string: [perl #81916] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=81916 >
* Refactor LC_NUMERIC test out of t/run/fresh_perl.tNiko Tyni2010-10-271-36/+0
| | | | | | Neither lib/locale.t nor t/run/fresh_perl.t should be used for new tests, so take the locale related tests and the setup code from fresh_perl.t to make ground for more.
* Add (?^...) regex constructKarl Williamson2010-09-201-1/+1
| | | | | | | | | | | | | | | | | | This adds (?^...) to signify to use the default regex modifiers for the cluster or embedded pattern-match modifier change. The major purpose of this is to simplify regex stringification, so that "^" is output in place of "-xism". As a result, the stringification will not change in the future when new regex modifiers are added, so tests, etc. that rely on a particular stringification will have to change now, but never again. Code that needs to work properly with both old- and new-style regexes can use something like the following: # Accept both old and new-style stringification my $modifiers = (qr/foobar/ =~ /\Q(?^/) ? '^' : '-xism'; This construct is Ben Morrow's idea.
* further fix for RT #23810David Mitchell2010-05-181-0/+40
| | | | | | | | | | | | The fix for #23810, 27e904532594b7fb, introduced a regression, spotted by Nicholas as RT #75146. Basically, in S_doeval() if the yyparse() fails due to dying (rather than just bailing out with with a syntax error, say), then the topmost EVAL context will have been popped. My improved error handling code mostly understood the difference, but forgot that in the die case, PL_eval_root will have been restored to its previous value by the CX pop, and thus its value shouldn't be messed with.
* split: Remove implicit split to @_Bo Borgerson2009-09-131-2/+2
| | | | Remove the long deprecated feature where split in scalar context writes to @_
* Remove code specific to MacOS Classic from core testsRafael Garcia-Suarez2009-09-081-2/+2
|
* Test dbmopen more thoroughly, including closing the coverage hole forNicholas Clark2008-04-171-30/+0
| | | | | the code that automatically requires AnyDBM_File.pm in pp_dbmopen. p4raw-id: //depot/perl@33705
* z/OS: t/ - mostly EBCDIC fixesJarkko Hietaniemi2006-07-121-1/+13
| | | | | Message-Id: <200607112101.k6BL1TGr321715@kosh.hut.fi> p4raw-id: //depot/perl@28550
* Being more careful about newlinesMichael G. Schwern2005-07-281-5/+8
| | | | | Message-ID: <20050722195334.GA12431@windhund.schwern.org> p4raw-id: //depot/perl@25239
* consting-eleventy.patch: More consts, plus actual bug fixAndy Lester2005-05-161-1/+1
| | | | | Message-ID: <20050516151353.GA25387@petdance.com> p4raw-id: //depot/perl@24489
* minitest fixRafael Garcia-Suarez2005-03-221-1/+1
| | | p4raw-id: //depot/perl@24063
* Fix breakage caused by Change 23179Steve Hay2004-08-021-1/+1
| | | p4raw-id: //depot/perl@23181
* Skip test when building without Encode.Marcus Holland-Moritz2004-08-011-0/+1
| | | p4raw-id: //depot/perl@23179
* Re: Segfault using HTML::EntitiesJarkko Hietaniemi2004-07-091-0/+16
| | | | | | Message-ID: <40EDBE1A.6080205@iki.fi> Date: Fri, 09 Jul 2004 00:35:22 +0300 p4raw-id: //depot/perl@23074
* Include variable names in "Use of uninitialized value" warningsDave Mitchell2004-04-231-1/+1
| | | p4raw-id: //depot/perl@22741
* Make the new glob tests pass (well, skip) even with miniperl.Jarkko Hietaniemi2003-09-131-8/+10
| | | p4raw-id: //depot/perl@21202
* VMS does not have quite UNIX glob semantics.Jarkko Hietaniemi2003-09-031-0/+14
| | | p4raw-id: //depot/perl@21008
* glob() bugGurusamy Sarathy2003-09-011-2/+17
| | | | | Message-Id: <200309010925.h819Pf0X011457@smtp3.ActiveState.com> p4raw-id: //depot/perl@20980
* Re: [PATCH] valgrind and /#/xAdrian M. Enache2003-08-261-1/+0
| | | | | Message-ID: <20030826051107.GA1086@ratsnest.hole> p4raw-id: //depot/perl@20901
* cleaning up tests of the 'eval { decl. } <=> runtime decl.' assumptionAdrian M. Enache2003-03-061-1/+1
| | | | | Message-ID: <20030305100620.GA909@ratsnest.hole> p4raw-id: //depot/perl@18840
* Add the test of [perl #8760] (fixed by change #18656).Jarkko Hietaniemi2003-02-051-0/+6
| | | | | p4raw-link: @18656 on //depot/perl: 834a3ffa15e23871424d94f91fd39fe77b05f76b p4raw-id: //depot/perl@18662
* Fix "[perl #20667] unicode regex vs non-unicode regex".Jarkko Hietaniemi2003-02-041-0/+12
| | | | | | | The PL_regdata was not set up (S_cache_re()) before it was needed (S_reginclass()). The test put in fresh_perl.t because we need a pristine state to start. p4raw-id: //depot/perl@18653
* Move some tests from t/run/fresh_perl.tRafael Garcia-Suarez2002-11-221-54/+1
| | | | | | to the new t/comp/parser.t. The goal being to get rid of fresh_perl.t at some point. p4raw-id: //depot/perl@18170
* Reverse change #8066 and sense of test, to satisfy [perl #17763]Hugo van der Sanden2002-10-241-1/+3
| | | | | p4raw-link: @8066 on //depot/perl: bf484eac86d1083a9dc1877646bb27c0a016b364 p4raw-id: //depot/perl@18055
* Re: [perl #17951] Strange UTF errorJarkko Hietaniemi2002-10-201-0/+14
| | | | | Message-ID: <20021016155051.GB268437@lyta.hut.fi> p4raw-id: //depot/perl@18035
* Integrate maint patches #13474, #13478, #13584, and #16539;Jarkko Hietaniemi2002-07-071-0/+13
| | | | | | | | | introduce the test case of [ID 20020623.009]. Once upon a time #13474 introduced evil coredumps, but now things seem to be better (tried both with and without ithreads). p4raw-id: //depot/perl@17407 p4raw-edited: from //depot/maint-5.6/perl@17406 'ignore' op.c (@14778..)
* Recover some of the #16845.Jarkko Hietaniemi2002-05-291-6/+0
| | | p4raw-id: //depot/perl@16858
* Retract #16820, #16819, #16810, #16669, #16531, #16530, #16501Jarkko Hietaniemi2002-05-281-0/+6
| | | | | to restore some level of sanity in the tied scalars can of worms. p4raw-id: //depot/perl@16845
* Make use vars grok UTF-8.Jarkko Hietaniemi2002-05-181-0/+10
| | | p4raw-id: //depot/perl@16670
* Re: t/op/tie.t #19 TODO ENOTWORKING Michael G. Schwern2002-05-181-6/+0
| | | | | Message-ID: <20020518035429.GA704@ool-18b93024.dyn.optonline.net> p4raw-id: //depot/perl@16669
* Make fresh_perl skip the embedded UTF-8 tests on EBCDIC.Jarkko Hietaniemi2002-05-151-1/+10
| | | p4raw-id: //depot/perl@16610
* Move the noisy tie core dump test to fresh_perl from op/tie.Jarkko Hietaniemi2002-05-101-0/+7
| | | p4raw-id: //depot/perl@16531
* [ID 20020507.020] PATCH: 5.6.1: t/op/misc.t: locale -a missing 2>/dev/nullAndrej Borsenkow2002-05-081-2/+2
| | | | | Message-Id: <6134254DE87BD411908B00A0C99B044F035BBFCB@mowd019a.mow.siemens.ru> p4raw-id: //depot/perl@16483
* Integrate #16254 from macperl;Jarkko Hietaniemi2002-04-281-2/+2
| | | | | Fix most tests on MacOS (not yet ext/ or /lib) p4raw-id: //depot/perl@16257
* my $utf8here, our $utf8here, and package variable $utf8here.Jarkko Hietaniemi2002-04-161-0/+23
| | | | | | | | | | | | | | | The actual minimal fix is in utf8.c and from NI-S, the rest are the tests (in fresh_perl since I couldn't get them easily to work elsewhere) and a slight behaviour change: previously UTF-8 identifiers had to start with an alphabetic character. No more so, now they can start with an (Unicode) ID_Continue character (which however is not a (Unicode) digit). (Limiting the first character to ID_Start would be rather restrictive, since ID_Start allows only alphabetic letters.) TODO: use vars qw($utf8here). This I don't find to be a showstopper. p4raw-id: //depot/perl@15943
* Configure followed by make minitestYitzchak Scott-Thoennes2002-02-081-1/+1
| | | | | Message-ID: <YIhY8gzkgSbC092yn@efn.org> p4raw-id: //depot/perl@14600
* Retract the anon leak subpatch of #14418 and #14431Jarkko Hietaniemi2002-02-071-10/+0
| | | | | (the latter came into bleadperl as part of #14433). p4raw-id: //depot/perl@14580
* Integrate changes 13474+13478+13584 from maintperl;Jarkko Hietaniemi2002-01-251-0/+10
| | | | | | | anon sub leakage. p4raw-id: //depot/perl@14418 p4raw-edited: from //depot/maint-5.6/perl@14417 'ignore' op.c (@13478..)
* [ID 20020122.012] Not OK: perl v5.7.2 +DEVEL14368 on cygwin-multi-64int ↵Yitzchak Scott-Thoennes2002-01-231-7/+3
| | | | | | | 1.3.6(0.4732) (UNINSTALLED) Message-Id: <GtgT8gzkg+CG092yn@efn.org> p4raw-id: //depot/perl@14383
* Re: ext/Devel/DProf/DProf.t -- use exe_extTels2002-01-191-2/+2
| | | | | Message-Id: <200201182106.XAA19133@taku.hut.fi> p4raw-id: //depot/perl@14340
* Rename kill_perl to fresh_perl; replace fresh_perl()Jarkko Hietaniemi2002-01-171-0/+794
with fresh_perl_is() and fresh_perl_like(). p4raw-id: //depot/perl@14309