i3/testcases/t/15-ipc-workspaces.t
Michael Stapelberg 49ea805905 tests: get the socket path from the X11 atom I3_SOCKET_PATH
The hard-coded socket paths are not useful when running the test suite in
parallel.
2011-07-25 13:35:56 +02:00

26 lines
457 B
Perl

#!perl
# vim:ts=4:sw=4:expandtab
use i3test;
use List::MoreUtils qw(all);
my $i3 = i3(get_socket_path());
####################
# Request workspaces
####################
SKIP: {
skip "IPC API not yet stabilized", 2;
my $workspaces = $i3->get_workspaces->recv;
ok(@{$workspaces} > 0, "More than zero workspaces found");
my $name_exists = all { defined($_->{name}) } @{$workspaces};
ok($name_exists, "All workspaces have a name");
}
done_testing;