summaryrefslogtreecommitdiff
path: root/t/op/threads-dirh.t
Commit message (Collapse)AuthorAgeFilesLines
* Add skip_all_without_config() to test.pl, and use it in 6 tests.Nicholas Clark2011-03-071-4/+1
| | | | | 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 6 tests in t/op and t/run to use skip_all_if_miniperl().Nicholas Clark2011-03-071-4/+1
|
* Correct spellingFather Chrysostomos2010-10-251-2/+2
| | | | I misspelt lopadotemachoselachogaleokranioleipsanodrimypotrimmatosilphiokarabomelitokatakechymenokichlepikossyphophattoperisteralektryonoptokephalliokinklopeleiolagoiosiraiobaphetraganopterygon.
* Remove the to-do mark from test 4 in threads-dirh.tFather Chrysostomos2010-10-251-4/+7
|
* Implement DIR* cloning on WindowsJan Dubois2010-10-251-2/+2
| | | | | | | | | | | | | | | | | | There doesn't seem to be a mechanism to clone FileFind handles on Windows. Therefore this implementation just reads all remaining entries into a cache buffer and closes the handle. All further readdir() requests will be fulfilled from the cache buffer, in both the original and the new interpreter. This fixes bug 75154 on Windows (all tests in t/op/threads-dirh.t pass). This commit also changes the return value of win32_telldir() to -1 for directory handles that have been read until the end. The previous return value was (NULL - dirp->start), which technically is not valid C code. API change alert: Perl_dirp_dup() gets an additional CLONE_PARAMS parameter in this change (like all the other Perl_*_dup() functions).
* [perl #75174] Clone dir handlesFather Chrysostomos2010-09-271-0/+131
On systems that support fchdir, use it to clone dir handles. On other systems, at least for now, don’t give the new thread a copy of the handle. This is not ideal, but better than crashing.