summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey V. Udaltsov <svu@gnome.org>2010-09-27 23:05:54 +0100
committerSergey V. Udaltsov <svu@gnome.org>2010-09-27 23:05:54 +0100
commit472fb49a9644facd34ec2102d4e0375a88fde8ea (patch)
treed066baf591a55c4d90de6829d6a2b8c0eddf32fd
parent01b6e558f50a7b5a188ef7d3c6b795ef63b51f28 (diff)
faster testing - no involvement of X, just xkbcomp
-rwxr-xr-xtests/xkbTestFunc.pm15
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/xkbTestFunc.pm b/tests/xkbTestFunc.pm
index 8d51121..0ec3ada 100755
--- a/tests/xkbTestFunc.pm
+++ b/tests/xkbTestFunc.pm
@@ -38,13 +38,14 @@ sub getXkbSettings
sub setXkbSettings
{
my ( $xkbRules, $xkbModel, $xkbLayouts, $xkbVariants, $xkbOptions ) = @_;
- ( system ( "setxkbmap", "-synch",
- "-rules", $xkbRules,
- "-model", $xkbModel,
- "-layout", $xkbLayouts,
- "-variant", $xkbVariants,
- "-option", $xkbOptions ) == 0 ) or die "Could not set xkb configuration";
- sleep 1;
+ my $outfile = ".test.out.xkb";
+ ( system ( "setxkbmap -rules \"$xkbRules\" " .
+ "-model \"$xkbModel\" " .
+ "-layout \"$xkbLayouts\" " .
+ "-variant \"$xkbVariants\" " .
+ "-option \"$xkbOptions\" " .
+ "-print | xkbcomp - -xkb $outfile" ) == 0 ) or die "Could not set xkb configuration";
+ unlink($outfile);
}
sub restoreXkbSettings