Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
tests: Bugfix: 11-goto.t: use mktemp for generating a random mark, no…
Browse files Browse the repository at this point in the history
…t base64

The base64 string could contain / and + which is treated specially since we
implemented PCRE support :)
  • Loading branch information
stapelberg committed Sep 24, 2011
1 parent 761dac5 commit 10a9d2a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions testcases/t/11-goto.t
Expand Up @@ -2,12 +2,7 @@
# vim:ts=4:sw=4:expandtab

use i3test;
use X11::XCB qw(:all);
use Digest::SHA1 qw(sha1_base64);

BEGIN {
use_ok('X11::XCB::Connection') or BAIL_OUT('Cannot load X11::XCB::Connection');
}
use File::Temp;

my $x = X11::XCB::Connection->new;

Expand Down Expand Up @@ -45,7 +40,7 @@ is($focus, $mid->id, "Middle window focused");
# Now goto a mark which does not exist
#####################################################################

my $random_mark = sha1_base64(rand());
my $random_mark = mktemp('mark.XXXXXX');

$focus = focus_after(qq|[con_mark="$random_mark"] focus|);
is($focus, $mid->id, "focus unchanged");
Expand Down

0 comments on commit 10a9d2a

Please sign in to comment.