summaryrefslogtreecommitdiff
path: root/portland/dapi/tests/test_screensaving.c
diff options
context:
space:
mode:
Diffstat (limited to 'portland/dapi/tests/test_screensaving.c')
-rw-r--r--portland/dapi/tests/test_screensaving.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/portland/dapi/tests/test_screensaving.c b/portland/dapi/tests/test_screensaving.c
deleted file mode 100644
index 2224eeb..0000000
--- a/portland/dapi/tests/test_screensaving.c
+++ /dev/null
@@ -1,23 +0,0 @@
-#include <stdio.h>
-#include <unistd.h>
-
-#include <dapi/comm.h>
-#include <dapi/calls.h>
-
-int main()
- {
- int ok;
- DapiConnection* conn = dapi_connectAndInit();
- if( conn == NULL )
- {
- fprintf( stderr, "Cannot connect!\n" );
- return 1;
- }
- ok = dapi_SuspendScreensaving( conn, 1 );
- printf( "Result1: %s\n", ok == 1 ? "Ok" : "Failed" );
- sleep( 10 );
- ok = dapi_SuspendScreensaving( conn, 0 );
- printf( "Result2: %s\n", ok == 1 ? "Ok" : "Failed" );
- dapi_close( conn );
- return 0;
- }