Skip to content

Commit

Permalink
Add check for presence of X11 environment
Browse files Browse the repository at this point in the history
  • Loading branch information
thundergnat committed Dec 7, 2019
1 parent 0960ce1 commit 29fb51b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions t/basic-00.t
@@ -1,5 +1,8 @@
use Test;

die 'Needs to have an X11 widowing system available.'
unless shell(qw<echo $DISPLAY>, :out).out.slurp.words > 0;

my $magick = qx/import --help/;

is $magick.substr(0,20), 'Version: ImageMagick', 'Imagemagick import utility is available';
Expand Down

0 comments on commit 29fb51b

Please sign in to comment.