Currently this test detects whether taint is available in the Perl by looking for a symbol in ccflags:
$Config{ccflags} =~ /-DSILENT_NO_TAINT_SUPPORT/
Upcoming changes aim to get around to adding a proper ./Configure script option and Config.pm support for this.
I have a modified version of this test for development purposes in which this code works:
# perl 5.45.2 adds the 'usetaint' Config key
use Test::More
( exists $Config{usetaint} ? !$Config{usetaint} :
$Config{ccflags} =~ /-DSILENT_NO_TAINT_SUPPORT/ )
? ( skip_all => 'No taint support' ) : ( tests => 2 );
If Perl/perl5#24640 gets merged, then this code ought to be updated to that.
Currently this test detects whether taint is available in the Perl by looking for a symbol in
ccflags:Upcoming changes aim to get around to adding a proper
./Configurescript option andConfig.pmsupport for this.I have a modified version of this test for development purposes in which this code works:
If Perl/perl5#24640 gets merged, then this code ought to be updated to that.