Fix game-input test to not run if the UI is not running on Windows

db4
Slava Pestov 2009-03-27 18:34:06 -05:00
parent 3bf5d2bfd4
commit 60fe59d873
1 changed files with 7 additions and 3 deletions

View File

@ -1,8 +1,12 @@
IN: game-input.tests
USING: game-input tools.test kernel system threads ;
USING: ui game-input tools.test kernel system threads
combinators.short-circuit calendar ;
os windows? os macosx? or [
{
[ os windows? ui-running? and ]
[ os macosx? ]
} 0|| [
[ ] [ open-game-input ] unit-test
[ ] [ yield ] unit-test
[ ] [ 1 seconds sleep ] unit-test
[ ] [ close-game-input ] unit-test
] when