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

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

Thread Previous | Thread Next
From:
A. Sinan Unur
Date:
July 25, 2016 17:21
Subject:
Re: Testing Config::General consumes extreme amounts of memory
Message ID:
CABbccANUjD_84DhUH-xhHwFZ92Uk_1c8-d5MXD3mYYJ1aoXnkA@mail.gmail.com
On Wed, Jul 20, 2016 at 10:06 AM, A. Sinan Unur <sinan@unur.com> wrote:

> https://rt.cpan.org/Public/Bug/Display.html?id=116340
>
> The output from `nmake test` is here:
>
> http://www.cpantesters.org/cpan/report/9fadc536-6d07-1014-8f72-e9fd0d0b81cc
>
> 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 rt.cpan.org#115326: 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

https://rt.cpan.org/Public/Bug/Display.html?id=116340#txn-1652361

FYI.

-- Sinan

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About