develooper Front page | perl.perl5.porters | Postings from February 2014

Perl-version compatibility of ext/B tests

Thread Next
From:
Steffen Mueller
Date:
February 25, 2014 18:28
Subject:
Perl-version compatibility of ext/B tests
Message ID:
530CE0CA.3050708@cpan.org
Hi Reini, hi all,

Reini, I'm sending this to you specifically because you're the biggest 
user of B.pm. Comments from others on the list are as welcome, though.

Currently, the tests in ext/B/t/* have a number of cases that check for 
perl versions to attempt to be portable across perl versions.

Does this even make sense? There's a reason why B is in ext/. It's very 
much NOT independent of the perl it runs against.

For the list/pushmark optimization, I'm faced with having to add big 
blocks of almost copy/pasted Concise output to make the tests pass OR I 
have to do something "clever". And not clever in the good way. So if I 
could instead just make B tests always work against the current version 
of perl, I'd be a much happier camper.

What do you think?

Best regards,
Steffen

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