Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
0e9f46d0
Commit
0e9f46d0
authored
Jan 28, 2014
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp/tests: Fix a test that fails on Windows.
parent
7d696911
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
winhttp.c
dlls/winhttp/tests/winhttp.c
+3
-3
No files found.
dlls/winhttp/tests/winhttp.c
View file @
0e9f46d0
...
...
@@ -292,7 +292,7 @@ static void test_SendRequest (void)
static
const
WCHAR
test_file
[]
=
{
'/'
,
'p'
,
'o'
,
's'
,
't'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
'p'
,
'h'
,
'p'
,
0
};
static
const
WCHAR
test_verb
[]
=
{
'P'
,
'O'
,
'S'
,
'T'
,
0
};
static
CHAR
post_data
[]
=
"mode=Test"
;
static
const
char
test_post
[]
=
"mode => Test
\
\
0
\n
"
;
static
const
char
test_post
[]
=
"mode => Test
\0\n
"
;
header_len
=
-
1L
;
total_len
=
optional_len
=
sizeof
(
post_data
);
...
...
@@ -349,8 +349,8 @@ static void test_SendRequest (void)
ret
=
WinHttpReadData
(
request
,
buffer
,
sizeof
(
buffer
)
-
1
,
&
bytes_rw
);
ok
(
ret
==
TRUE
,
"WinHttpReadData failed: %u.
\n
"
,
GetLastError
());
ok
(
bytes_rw
==
s
trlen
(
test_post
),
"Read %u bytes instead of %d.
\n
"
,
bytes_rw
,
lstrlenA
(
test_post
)
);
ok
(
strncmp
(
buffer
,
test_post
,
bytes_rw
)
==
0
,
"Data read did not match, got '%s'.
\n
"
,
buffer
);
ok
(
bytes_rw
==
s
izeof
(
test_post
)
-
1
,
"Read %u bytes
\n
"
,
bytes_rw
);
ok
(
!
memcmp
(
buffer
,
test_post
,
sizeof
(
test_post
)
-
1
),
"Data read did not match.
\n
"
);
ret
=
WinHttpCloseHandle
(
request
);
ok
(
ret
==
TRUE
,
"WinHttpCloseHandle failed on closing request, got %d.
\n
"
,
ret
);
...
...
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