]> git.sur5r.net Git - i3/i3/commitdiff
Add testcase which ensures that floating windows can be closed
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 31 May 2010 21:17:02 +0000 (23:17 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 31 May 2010 21:17:02 +0000 (23:17 +0200)
See last commit

testcases/t/26-regress-close.t [new file with mode: 0644]

diff --git a/testcases/t/26-regress-close.t b/testcases/t/26-regress-close.t
new file mode 100644 (file)
index 0000000..9df3aaf
--- /dev/null
@@ -0,0 +1,26 @@
+#!perl
+# vim:ts=4:sw=4:expandtab
+#
+# Regression: closing of floating clients did crash i3 when closing the
+# container which contained this client.
+#
+use i3test tests => 1;
+use X11::XCB qw(:all);
+use v5.10;
+
+my $i3 = i3("/tmp/nestedcons");
+
+my $tmp = get_unused_workspace();
+$i3->command("workspace $tmp")->recv;
+
+$i3->command('open')->recv;
+$i3->command('mode toggle')->recv;
+$i3->command('kill')->recv;
+$i3->command('kill')->recv;
+
+
+my $tree = $i3->get_workspaces->recv;
+my @nodes = @{$tree->{nodes}};
+ok(@nodes > 0, 'i3 still lives');
+
+diag( "Testing i3, Perl $], $^X" );