diff options
author | Sergey V. Udaltsov <svu@gnome.org> | 2010-09-27 23:05:54 +0100 |
---|---|---|
committer | Sergey V. Udaltsov <svu@gnome.org> | 2010-09-27 23:05:54 +0100 |
commit | 472fb49a9644facd34ec2102d4e0375a88fde8ea (patch) | |
tree | d066baf591a55c4d90de6829d6a2b8c0eddf32fd /tests | |
parent | 01b6e558f50a7b5a188ef7d3c6b795ef63b51f28 (diff) |
faster testing - no involvement of X, just xkbcomp
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/xkbTestFunc.pm | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/xkbTestFunc.pm b/tests/xkbTestFunc.pm index 8d511210..0ec3ada2 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 |