summaryrefslogtreecommitdiffstats
path: root/t/004-undefined-program.t
blob: 8ecf4751290a0ff9500d0752a8fa89078e96adb3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!perl
use strict;
use warnings;
use Test::More tests => 2;
use IO::Pty::Easy;

my $pty = new IO::Pty::Easy;
eval { $pty->spawn("missing_program_io_pty_easy") };
like($@, qr/Cannot exec\(missing_program_io_pty_easy\)/);
ok(!$pty->is_active, "pty isn't active if program doesn't exist");