summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authordscho <dscho>2005-01-19 02:15:00 +0000
committerdscho <dscho>2005-01-19 02:15:00 +0000
commitd354bb6015e042a17fab3a7598084e03ba79ee6d (patch)
treeb83bcd141b2d346eb6c16ee0ad5ca696ac4cf899 /test
parent81ac5600bec356613484b1b913f207bf221cc0a8 (diff)
downloadlibtdevnc-d354bb6015e042a17fab3a7598084e03ba79ee6d.tar.gz
libtdevnc-d354bb6015e042a17fab3a7598084e03ba79ee6d.zip
fix test (don't show cursor...); correctly set the encodings in the client;
really test 20 seconds
Diffstat (limited to 'test')
-rw-r--r--test/encodingstest.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/test/encodingstest.c b/test/encodingstest.c
index a5202f3..9a41c62 100644
--- a/test/encodingstest.c
+++ b/test/encodingstest.c
@@ -160,17 +160,14 @@ static void update(rfbClient* client,int x,int y,int w,int h) {
static void* clientLoop(void* data) {
rfbClient* client=(rfbClient*)data;
clientData* cd=(clientData*)client->clientData;
- int argc=4;
- char* argv[4]={"client",
- "-encodings", testEncodings[cd->encodingIndex].str,
- cd->display};
-
+
+ client->appData.encodingsString=strdup(testEncodings[cd->encodingIndex].str);
sleep(1);
rfbClientLog("Starting client (encoding %s, display %s)\n",
testEncodings[cd->encodingIndex].str,
cd->display);
- if(!rfbInitClient(client,&argc,argv)) {
+ if(!rfbInitClient(client,0,0)) {
rfbClientErr("Had problems starting client (encoding %s)\n",
testEncodings[cd->encodingIndex].str);
updateStatistics(cd->encodingIndex,TRUE);
@@ -296,6 +293,7 @@ int main(int argc,char** argv)
server=rfbGetScreen(&argc,argv,width,height,8,3,4);
server->frameBuffer=malloc(400*300*4);
+ server->cursor=0;
for(j=0;j<400*300*4;j++)
server->frameBuffer[j]=j;
rfbInitServer(server);
@@ -313,7 +311,7 @@ int main(int argc,char** argv)
t=time(0);
/* test 20 seconds */
- while(time(0)-t<5) {
+ while(time(0)-t<20) {
idle(server);