summaryrefslogtreecommitdiffstats
path: root/t/open-close.t
diff options
context:
space:
mode:
Diffstat (limited to 't/open-close.t')
-rw-r--r--t/open-close.t11
1 files changed, 11 insertions, 0 deletions
diff --git a/t/open-close.t b/t/open-close.t
new file mode 100644
index 0000000..6140821
--- /dev/null
+++ b/t/open-close.t
@@ -0,0 +1,11 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+use Test::More;
+use IO::Pty::Easy;
+
+my $pty = IO::Pty::Easy->new;
+$pty->close;
+ok(!$pty->opened, "closing a pty before a spawn");
+
+done_testing;