mschout / perl-text-template

Expand template text with embedded Perl
13 stars 6 forks source link

skip taint tests if running under a perl without taint support #20

Closed neilb closed 2 years ago

neilb commented 2 years ago

Hi,

Perl 5.36.0 will support a Configure option for disabling taint support. This will give a performance boost, for people who never use taint anyway. When built this way, the taint features (e.g. -T and -t) silently do nothing.

This PR skips the taint tests if being run under a perl that was built without taint support.

If you want to test this, you can download 5.35.11 and build a taint-free perl with:

./Configure -Dusedevel -des -Utaint_support

Without this change, if someone builds a taint-free perl they won't be able to install Text::Template, as the testsuite will fail.

Cheers, Neil

mschout commented 2 years ago

Thanks @neilb !

mschout commented 2 years ago

Released as v1.61 (just uploaded to PAUSE)