]> git.sur5r.net Git - i3/i3/commitdiff
add testcase for invalid commands
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 12 Nov 2010 19:26:53 +0000 (20:26 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 12 Nov 2010 19:26:53 +0000 (20:26 +0100)
testcases/t/34-invalid-command.t [new file with mode: 0644]

diff --git a/testcases/t/34-invalid-command.t b/testcases/t/34-invalid-command.t
new file mode 100644 (file)
index 0000000..12380d4
--- /dev/null
@@ -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" );