diff --git a/.travis.yml b/.travis.yml index ae5ef44..2078f57 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,7 @@ before_install: - sudo make install - cd .. - ./autogen.sh - - git clone https://github.com/tlinden/p5mode tests/lib + - git clone https://github.com/tlinden/p5mods tests/lib compiler: - clang - gcc diff --git a/tests/unittests.pl b/tests/unittests.pl index bc291c6..606a2b9 100755 --- a/tests/unittests.pl +++ b/tests/unittests.pl @@ -23,12 +23,12 @@ use lib qw(lib); BEGIN { eval { - require IPC::Run; + require IPC::Run; # on win32 }; -}; +} +use IPC::Open3; # unix et al use this use Test::More; -use IPC::Open3; use IO::Select; use FileHandle; use Config::General qw(ParseConfig); @@ -220,6 +220,7 @@ sub run3 { else { @c = split /\s\s*/, $cmd; } + my $ret = IPC::Run::run( \@c, \$input, \$o, \$e, IPC::Run::timeout( $timeout )); $$output = $o; $$error = $e;