From 09f147fb339c4e054d4aa4347f3aae10aa7458a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sun, 28 Oct 2007 23:13:47 +0000 Subject: [PATCH] test app for idle_time() (bug 1593) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22755 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/servers/app/Jamfile | 1 + src/tests/servers/app/idle_test/Jamfile | 6 ++++++ src/tests/servers/app/idle_test/test.cpp | 10 ++++++++++ 3 files changed, 17 insertions(+) create mode 100644 src/tests/servers/app/idle_test/Jamfile create mode 100644 src/tests/servers/app/idle_test/test.cpp diff --git a/src/tests/servers/app/Jamfile b/src/tests/servers/app/Jamfile index bc8aa94be1..9a4a750943 100644 --- a/src/tests/servers/app/Jamfile +++ b/src/tests/servers/app/Jamfile @@ -167,6 +167,7 @@ SubInclude HAIKU_TOP src tests servers app cursor_test ; SubInclude HAIKU_TOP src tests servers app desktop_window ; SubInclude HAIKU_TOP src tests servers app event_mask ; SubInclude HAIKU_TOP src tests servers app following ; +SubInclude HAIKU_TOP src tests servers app idle_test ; SubInclude HAIKU_TOP src tests servers app look_and_feel ; SubInclude HAIKU_TOP src tests servers app menu_crash ; SubInclude HAIKU_TOP src tests servers app no_pointer_history ; diff --git a/src/tests/servers/app/idle_test/Jamfile b/src/tests/servers/app/idle_test/Jamfile new file mode 100644 index 0000000000..2a6d39ba16 --- /dev/null +++ b/src/tests/servers/app/idle_test/Jamfile @@ -0,0 +1,6 @@ +SubDir HAIKU_TOP src tests servers app idle_test ; + +SimpleTest idle_test : + test.cpp + : be ; + diff --git a/src/tests/servers/app/idle_test/test.cpp b/src/tests/servers/app/idle_test/test.cpp new file mode 100644 index 0000000000..5cd627c307 --- /dev/null +++ b/src/tests/servers/app/idle_test/test.cpp @@ -0,0 +1,10 @@ +#include +#include +#include + +int main() +{ + BApplication app("application/x-vnd.idle-test"); + printf("idle_time() : %Ld\n", idle_time()); +} +