From df2ded08d87d6b65e591e8f502ab97e826848816 Mon Sep 17 00:00:00 2001
From: Michael Stapelberg <michael@stapelberg.de>
Date: Fri, 12 Nov 2010 20:26:53 +0100
Subject: [PATCH] add testcase for invalid commands

---
 testcases/t/34-invalid-command.t | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 testcases/t/34-invalid-command.t

diff --git a/testcases/t/34-invalid-command.t b/testcases/t/34-invalid-command.t
new file mode 100644
index 00000000..12380d46
--- /dev/null
+++ b/testcases/t/34-invalid-command.t
@@ -0,0 +1,16 @@
+#!perl
+# vim:ts=4:sw=4:expandtab
+#
+# 
+#
+use i3test tests => 1;
+
+my $i3 = i3("/tmp/nestedcons");
+
+$i3->command("blargh!")->recv;
+
+my $tree = $i3->get_workspaces->recv;
+my @nodes = @{$tree->{nodes}};
+ok(@nodes > 0, 'i3 still lives');
+
+diag( "Testing i3, Perl $], $^X" );