This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Net::Ping 500_ping_icmp.t: remove sudo code
authorDavid Mitchell <davem@iabyn.com>
Thu, 3 Nov 2016 11:06:25 +0000 (11:06 +0000)
committerDavid Mitchell <davem@iabyn.com>
Thu, 3 Nov 2016 11:13:28 +0000 (11:13 +0000)
commit7bfdd8260c4e963865603619e956b96e0ad73646
treec6d428e7767ab4353f32e6e5c1d706a410985002
parent11288bb3e74d2953b4018f5548f558aa24f9888f
Net::Ping 500_ping_icmp.t: remove sudo code

Rcently this  test scipt had code added to it to attempt to re-run itself
as root by invoking 'sudo' rather rather than just skipping the ICMP ping
test.

This can the side-effects of:

* sudo sending a security alert email to the local root account;

* a script being run as root when a non-root user invokes 'make test',
  which might be considered antisocial;

* noise on stderr about sudo failing.

See http://nntp.perl.org/group/perl.perl5.porters/240707.

This commit just removes the sudo code and doesn't try to do anything
clever.
Porting/Maintainers.pl
dist/Net-Ping/t/500_ping_icmp.t
t/porting/customized.dat