mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Place "use threads" within "eval" to make it pass syntax checks on travis-ci
This commit is contained in:
parent
632c24d0a9
commit
ff4c91acb8
1 changed files with 8 additions and 1 deletions
|
@ -72,7 +72,14 @@ USA.
|
|||
|
||||
use strict;
|
||||
use warnings;
|
||||
use threads;
|
||||
|
||||
# This evil "eval" is to make Travis CI able to test the plugin syntax
|
||||
# without having a perl built with threads.
|
||||
#
|
||||
# Also: The use of interpreter-based threads in perl is officially
|
||||
# discouraged.
|
||||
eval 'use threads; 1;' or die 'Could not use threads';
|
||||
|
||||
use Net::Ping;
|
||||
my (%defaults, @hosts, $cmd_arg);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue