Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
d354bb60
Commit
d354bb60
authored
Jan 19, 2005
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test (don't show cursor...); correctly set the encodings in the client;
really test 20 seconds
parent
81ac5600
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
encodingstest.c
test/encodingstest.c
+5
-7
No files found.
test/encodingstest.c
View file @
d354bb60
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment