Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c56eec22
Commit
c56eec22
authored
Sep 21, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet/tests: Don't fail the tests if the network is unreachable.
parent
7f5b4a46
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
http.c
dlls/wininet/tests/http.c
+13
-1
No files found.
dlls/wininet/tests/http.c
View file @
c56eec22
...
...
@@ -591,7 +591,12 @@ static void HttpSendRequestEx_test(void)
ok
(
hConnect
!=
NULL
,
"Unable to connect to http://crossover.codeweavers.com
\n
"
);
hRequest
=
HttpOpenRequest
(
hConnect
,
"POST"
,
"/posttest.php"
,
NULL
,
NULL
,
NULL
,
INTERNET_FLAG_NO_CACHE_WRITE
,
0
);
ok
(
hRequest
!=
NULL
,
"Failed to open request handle
\n
"
);
if
(
!
hRequest
&&
GetLastError
()
==
ERROR_INTERNET_NAME_NOT_RESOLVED
)
{
trace
(
"Network unreachable, skipping test
\n
"
);
goto
done
;
}
ok
(
hRequest
!=
NULL
,
"Failed to open request handle err %lx
\n
"
,
GetLastError
());
BufferIn
.
dwStructSize
=
sizeof
(
INTERNET_BUFFERS
);
...
...
@@ -622,6 +627,7 @@ static void HttpSendRequestEx_test(void)
ok
(
strncmp
(
szBuffer
,
"mode => Test
\n
"
,
dwBytesRead
)
==
0
,
"Got string %s
\n
"
,
szBuffer
);
ok
(
InternetCloseHandle
(
hRequest
),
"Close request handle failed
\n
"
);
done:
ok
(
InternetCloseHandle
(
hConnect
),
"Close connect handle failed
\n
"
);
ok
(
InternetCloseHandle
(
hSession
),
"Close session handle failed
\n
"
);
}
...
...
@@ -644,6 +650,11 @@ static void HttpHeaders_test(void)
ok
(
hConnect
!=
NULL
,
"Unable to connect to http://crossover.codeweavers.com
\n
"
);
hRequest
=
HttpOpenRequest
(
hConnect
,
"POST"
,
"/posttest.php"
,
NULL
,
NULL
,
NULL
,
INTERNET_FLAG_NO_CACHE_WRITE
,
0
);
if
(
!
hRequest
&&
GetLastError
()
==
ERROR_INTERNET_NAME_NOT_RESOLVED
)
{
trace
(
"Network unreachable, skipping test
\n
"
);
goto
done
;
}
ok
(
hRequest
!=
NULL
,
"Failed to open request handle
\n
"
);
index
=
0
;
...
...
@@ -799,6 +810,7 @@ static void HttpHeaders_test(void)
ok
(
InternetCloseHandle
(
hRequest
),
"Close request handle failed
\n
"
);
done:
ok
(
InternetCloseHandle
(
hConnect
),
"Close connect handle failed
\n
"
);
ok
(
InternetCloseHandle
(
hSession
),
"Close session handle failed
\n
"
);
}
...
...
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