develooper Front page | perl.perl5.porters | Postings from July 2016

Re: Testing Config::General consumes extreme amounts of memory

Thread Previous | Thread Next
A. Sinan Unur
July 25, 2016 17:21
Re: Testing Config::General consumes extreme amounts of memory
Message ID:
On Wed, Jul 20, 2016 at 10:06 AM, A. Sinan Unur <> wrote:

> The output from `nmake test` is here:
> I am not sure if this is a package bug or a perl bug that surfaces
> under specific circumstances or an oddity I introduced in my build.

It seems this problem is due to the use of File::Spec->catfile in
conjunction with File::Glob::bsd_glob.

File::Glob documentation has this warning:

"Win32 users should use the real slash."

It seems like the following fix:

2.62  - fix Callback on 'pre_open' not called
        when glob expands to one include file

resulted exercising a previously hidden problem with passing paths
containing `\` to bsd_glob.

Now, judiciously replacing `catfile` calls, with "$dir/$file" in
Config::General results in all tests passing as I note in


-- Sinan

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About