summaryrefslogtreecommitdiff
path: root/t/op/grep.t
Commit message (Collapse)AuthorAgeFilesLines
* Use set_up_inc for several unit testsNicolas R2016-08-181-2/+2
| | | | | | | | | | | | | | | Use set_up_inc when require.pl is loaded move plan outside of BEGIN block when no tests are run at BEGIN time. Using set_up_inc allow to run these tests under minitest but also compile them using B::C. This also has the advantage to use a single control point for @INC setup. Note: some tests cannot use 'require test.pl', unshfit is then used for them.
* replace leave_common() with leave_adjust_stacks()David Mitchell2016-02-031-1/+11
| | | | | | | | | | Make the remaining callers of S_leave_common() use leave_adjust_stacks() instead, then delete this static function. This brings the benefits of freeing TEMPS on all scope exists that has already been introduced on sub exits; uses the optimised code for creating mortal copies; and finally unifies all the different 'process return args on scope exit' implementations into single function.
* Test preamble: unify to dot slash test dot plJarkko Hietaniemi2014-10-081-1/+1
|
* [perl #78194] Make grep/map copy pad tmpsFather Chrysostomos2013-07-251-5/+3
| | | | | | | | before aliasing them to $_. And make sure the copies go back on the stack for grep, since modi- fying $_ in the grep block or expression is supposed to modify the item returned.
* To-do tests for perl #78194Father Chrysostomos2013-07-251-1/+9
| | | | | plus a regular (not to-do) test for an lvalue sub case that already works properly.
* [perl #92254, #92256] Fix SAVE_DEFSV to do refcountingFather Chrysostomos2012-01-081-1/+9
| | | | | | | | | | | | | | | | The current definition of SAVE_DEFSV doesn’t take reference count- ing into account. Every instance of it in the perl core is buggy as a result. Most are also followed by DEFSV_set, which is likewise buggy. This commit implements SAVE_DEFSV in terms of save_gp and SAVEGENERICSV if PERL_CORE is defined. save_gp and SAVEGENERICSV are what local(*_) = \$foo uses. Changing the definition for XS code is probably too risky this close to 5.16. It should probably be changed later, though. DEFSV_set is now changed to do reference counting too.
* grep.t: require test.pl in BEGIN blockFather Chrysostomos2012-01-081-1/+1
| | | | for parenthetical omissions.
* 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 >
* proper error on "grep $x (1,2,3)". Solves [perl #37314]Gerard Goossen2009-12-081-1/+8
|
* Mark all .t and .pm files as non executableRafael Garcia-Suarez2009-06-061-0/+0
|
* Resubmit change #28095Rafael Garcia-Suarez2006-05-041-118/+158
| | | | | p4raw-link: @28095 on //depot/perl: a86fbd4f9d493275993c0370a0246611dbcffc30 p4raw-id: //depot/perl@28097
* The optree builder was looping when constructing the opsRafael Garcia-Suarez2004-04-071-1/+6
| | | | | | for a map/grep block containing a while(1). (Bug reported by Pixel.) p4raw-id: //depot/perl@22667
* Check the context of for/grep/map.Jarkko Hietaniemi2003-09-141-1/+20
| | | p4raw-id: //depot/perl@21230
* One more test count tweak.Jarkko Hietaniemi2003-09-091-1/+1
| | | p4raw-id: //depot/perl@21135
* Re: [PATCH] honoring void context for map(), return from sub end testdavid nicol2003-09-091-0/+8
| | | | | | | Message-Id: <1063082372.1375.126.camel@plaza.davidnicol.com> (a testcase) p4raw-id: //depot/perl@21131
* integrate 5.8-maint: changes #18174 18187 18189-92 18202 18209 18214-5Hugo van der Sanden2002-12-021-1/+7
| | | | | | | | | | | | | | | p4raw-link: @18189 on //depot/maint-5.8/perl: 27314835b1b1ea8730d4a0eb871861ac238c63f9 p4raw-link: @18187 on //depot/maint-5.8/perl: 94e81ce4c47784f86829e70129b1d0a3e95ca51c p4raw-link: @18174 on //depot/maint-5.8/perl: f8d24d869503bcd9df0e86aa5898c89996220bf8 p4raw-id: //depot/perl@18221 p4raw-branched: from //depot/maint-5.8/perl@18220 'branch in' ext/POSIX/t/is.t p4raw-integrated: from //depot/maint-5.8/perl@18220 'copy in' README.os2 ext/GDBM_File/GDBM_File.pm ext/GDBM_File/Makefile.PL lib/Unicode/UCD.pm t/op/subst.t (@17645..) INSTALL t/op/grep.t (@18080..) ext/Fcntl/t/syslfs.t t/op/lfs.t (@18133..) 'merge in' t/op/eval.t (@17645..) pod/perldiag.pod (@18146..) lib/Unicode/UCD.t (@18156..) MANIFEST (@18173..)
* Fix bug #17771 : segfault with the 'for' statement modifierRafael Garcia-Suarez2002-10-111-1/+33
| | | | | used inside a map or a grep. p4raw-id: //depot/perl@17998
* change#3744 should have made grep more like map instead of theGurusamy Sarathy2000-01-261-1/+69
| | | | | | | other way around p4raw-link: @3744 on //depot/perl: 4e4e412b11cee5b4d44ee0d29943215db93eb350 p4raw-id: //depot/perl@4897
* fix bogus OPf_REF context for the BLOCK in C<grep BLOCK @foo>Gurusamy Sarathy1999-03-281-0/+31
(sometimes caused bizarreness in the BLOCK) p4raw-id: //depot/perl@3180