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

[perl #128574] Some tests call fresh_perl* incorrectly

Thread Previous | Thread Next
From:
Tony Cook via RT
Date:
July 11, 2016 00:57
Subject:
[perl #128574] Some tests call fresh_perl* incorrectly
Message ID:
rt-4.0.18-19751-1468198642-1941.128574-15-0@perl.org
On Thu Jul 07 21:06:54 2016, dcollinsn@gmail.com wrote:
> This is mostly a TODO for myself, but some tests call
> fresh_perl{,_is,_like} without the third "args" argument, and instead
> as fresh_perl_is($code, $expected, $name). This results in the test
> "name" not being passed properly, since the third argument is supposed
> to be a hashref.
> 
> I'll probably either grep for them or temporarily instrument
> fresh_perl to fail if it looks like the third argument is a string.

It's probably better to have fresh_perl.*() always fail when the third argument is a string, to prevent future changes re-introducing the problem.

Tony

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=128574

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