A test app that does constant workspace switching.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23415 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2008-01-11 19:10:01 +00:00
parent 1518693434
commit 1214ef1b21
3 changed files with 43 additions and 0 deletions

View File

@ -182,3 +182,4 @@ SubInclude HAIKU_TOP src tests servers app stress_test ;
SubInclude HAIKU_TOP src tests servers app textview ;
SubInclude HAIKU_TOP src tests servers app view_state ;
SubInclude HAIKU_TOP src tests servers app window_creation ;
SubInclude HAIKU_TOP src tests servers app workspace_switcher ;

View File

@ -0,0 +1,18 @@
SubDir HAIKU_TOP src tests servers app workspace_switcher ;
SetSubDirSupportedPlatformsBeOSCompatible ;
AddSubDirSupportedPlatforms libbe_test ;
UseHeaders [ FDirName os app ] ;
UseHeaders [ FDirName os interface ] ;
Application workspace_switcher :
workspace_switcher.cpp
: be
;
if $(TARGET_PLATFORM) = libbe_test {
HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : workspace_switcher
: tests!apps ;
}

View File

@ -0,0 +1,24 @@
/*
* Copyright 2008, Haiku Inc.
* Distributed under the terms of the MIT License.
*
* Authors:
* Axel Dörfler, axeld@pinc-software.de
*/
#include <Application.h>
int
main()
{
BApplication app("application/x-vnd.Haiku-test-wss");
while (true) {
activate_workspace(0);
snooze(3000);
activate_workspace(1);
}
}