Skip Menu |

This queue is for tickets about the Data-Inspect CPAN distribution.

Report information
The Basics
Id: 117168
Status: resolved
Priority: 0/
Queue: Data-Inspect

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.04
Fixed in: (no value)



Subject: Unescaped left brace in regex is illegal here in regex
t/Data-Inspect.t fails with perl 5.25.x: PERL_DL_NONLAZY=1 "/bbbike/perl-5.25.4/bin/perl5.25.4" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/^#<IO::Dir #<GLOB NAME="GEN0" SCALAR=\\undef HASH={ <-- HERE "io_dir_path" => "\."} IO=#<IO::(?:Handle|File) #<IO>> GLOB=#<CIRCULAR REFERENCE 0x[\da-f]+> PACKAGE="Symbol">>$/ at t/Data-Inspect.t line 48. # Looks like your test exited with 2 just after 1. t/Data-Inspect.t .. Dubious, test returned 2 (wstat 512, 0x200) Failed 14/15 subtests Related discussion at p5p: https://rt.perl.org/Ticket/Display.html?id=128139
On Tue Aug 23 14:05:53 2016, SREZIC wrote: Show quoted text
> t/Data-Inspect.t fails with perl 5.25.x: > > PERL_DL_NONLAZY=1 "/bbbike/perl-5.25.4/bin/perl5.25.4" "- > MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef > *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" > t/*.t > Unescaped left brace in regex is illegal here in regex; marked by <-- > HERE in m/^#<IO::Dir #<GLOB NAME="GEN0" SCALAR=\\undef HASH={ <-- HERE > "io_dir_path" => "\."} IO=#<IO::(?:Handle|File) #<IO>> GLOB=#<CIRCULAR > REFERENCE 0x[\da-f]+> PACKAGE="Symbol">>$/ at t/Data-Inspect.t line > 48. > # Looks like your test exited with 2 just after 1. > t/Data-Inspect.t .. > Dubious, test returned 2 (wstat 512, 0x200) > Failed 14/15 subtests > > > Related discussion at p5p: > https://rt.perl.org/Ticket/Display.html?id=128139
The patch attached should address the problem. Thank you very much. Jim Keenan
Subject: Data-Inspect-unrecognized-left-brace.diff
diff -u -r t/Data-Inspect.t corrected_t/Data-Inspect.t --- t/Data-Inspect.t 2010-03-14 16:15:50.000000000 -0400 +++ corrected_t/Data-Inspect.t 2016-12-20 11:30:49.537754383 -0500 @@ -45,7 +45,7 @@ # Inspect a common class use IO::Dir; my $dir = IO::Dir->new('.'); -like($insp->inspect($dir), qr/^#<IO::Dir #<GLOB NAME="GEN0" SCALAR=\\undef HASH={"io_dir_path" => "\."} IO=#<IO::(?:Handle|File) #<IO>> GLOB=#<CIRCULAR REFERENCE 0x[\da-f]+> PACKAGE="Symbol">>$/); +like($insp->inspect($dir), qr/^#<IO::Dir #<GLOB NAME="GEN0" SCALAR=\\undef HASH=\{"io_dir_path" => "\."} IO=#<IO::(?:Handle|File) #<IO>> GLOB=#<CIRCULAR REFERENCE 0x[\da-f]+> PACKAGE="Symbol">>$/); # Create a simple hash-based package and one with an inspect method package Simple;
Subject: Re: [rt.cpan.org #117168] Unescaped left brace in regex is illegal here in regex
Date: Wed, 21 Dec 2016 15:46:29 +0000
To: bug-Data-Inspect [...] rt.cpan.org
From: Rich Daley <rich [...] owl.me.uk>
Hi Jim - thanks for the patch! I've just released this as Data::Inspect 0.05 ... the first release in 6.5 years! Are you using Data::Inspect in your project? I'd be interested to know how it's being used after all this time! ~ R On Tue, 20 Dec 2016 at 16:32 James E Keenan via RT < bug-Data-Inspect@rt.cpan.org> wrote: Show quoted text
> Queue: Data-Inspect > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=117168 > > > On Tue Aug 23 14:05:53 2016, SREZIC wrote:
> > t/Data-Inspect.t fails with perl 5.25.x: > > > > PERL_DL_NONLAZY=1 "/bbbike/perl-5.25.4/bin/perl5.25.4" "- > > MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef > > *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" > > t/*.t > > Unescaped left brace in regex is illegal here in regex; marked by <-- > > HERE in m/^#<IO::Dir #<GLOB NAME="GEN0" SCALAR=\\undef HASH={ <-- HERE > > "io_dir_path" => "\."} IO=#<IO::(?:Handle|File) #<IO>> GLOB=#<CIRCULAR > > REFERENCE 0x[\da-f]+> PACKAGE="Symbol">>$/ at t/Data-Inspect.t line > > 48. > > # Looks like your test exited with 2 just after 1. > > t/Data-Inspect.t .. > > Dubious, test returned 2 (wstat 512, 0x200) > > Failed 14/15 subtests > > > > > > Related discussion at p5p: > > https://rt.perl.org/Ticket/Display.html?id=128139
> > > The patch attached should address the problem. > > Thank you very much. > Jim Keenan >
Marked as resolved.