Alien-Gnuplot
view release on metacpan or search on metacpan
#===============================================================================
#
# FILE: 03-env.t
#
# DESCRIPTION: Environment variable
#
# AUTHOR: Pete Houston (pete), cpan@openstrike.co.uk
#
#===============================================================================
use strict;
use warnings;
use Alien::Gnuplot;
use Test::More tests => 1;
use Test::Exception;
# Set the path to something non-existent
$ENV{GNUPLOT_BINARY} = '/this/is/not/a/real/path';
throws_ok { Alien::Gnuplot->load_gnuplot } qr/no executable gnuplot found!/,
'Duff path fatality';
( run in 1.522 second using v1.01-cache-2.11-cpan-796a6f069b2 )