diff options
author | marha <marha@users.sourceforge.net> | 2010-09-28 09:54:37 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-09-28 09:54:37 +0000 |
commit | 43e5da9aab683418e6ada092e15cf40409357374 (patch) | |
tree | 8301768492932ade3100f726729f9062b59f672e /xorg-server/xkeyboard-config/tests/xkbTestFunc.pm | |
parent | f331b3c351021681044b2594d1ec5b49bd8edb47 (diff) | |
parent | f6ba83c963bf48dfa349ab8c54d1968c4c69f7b8 (diff) | |
download | vcxsrv-43e5da9aab683418e6ada092e15cf40409357374.tar.gz vcxsrv-43e5da9aab683418e6ada092e15cf40409357374.tar.bz2 vcxsrv-43e5da9aab683418e6ada092e15cf40409357374.zip |
svn merge ^/branches/released .
Diffstat (limited to 'xorg-server/xkeyboard-config/tests/xkbTestFunc.pm')
-rw-r--r-- | xorg-server/xkeyboard-config/tests/xkbTestFunc.pm | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/xorg-server/xkeyboard-config/tests/xkbTestFunc.pm b/xorg-server/xkeyboard-config/tests/xkbTestFunc.pm index 1d7881d23..77f03144f 100644 --- a/xorg-server/xkeyboard-config/tests/xkbTestFunc.pm +++ b/xorg-server/xkeyboard-config/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
|