diff options
Diffstat (limited to 't/001-open-close.t')
-rw-r--r-- | t/001-open-close.t | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/t/001-open-close.t b/t/001-open-close.t new file mode 100644 index 0000000..46ad7fc --- /dev/null +++ b/t/001-open-close.t @@ -0,0 +1,9 @@ +#!perl +use strict; +use warnings; +use Test::More tests => 1; +use IO::Pty::Easy; + +my $pty = new IO::Pty::Easy; +$pty->close; +ok(!defined($pty->{pty}), "closing a pty before a spawn"); |