diff options
author | nicolas.dufresne <nicolas.dufresne@c587cffe-e639-0410-9787-d7902ae8ed56> | 2010-10-06 17:23:16 +0000 |
---|---|---|
committer | nicolas.dufresne <nicolas.dufresne@c587cffe-e639-0410-9787-d7902ae8ed56> | 2010-10-06 17:23:16 +0000 |
commit | de89bb19e86631f6c8c3a754a71f65f2a70a2397 (patch) | |
tree | 6f6bb9809185a3298215c5bda43f8711f91788e8 /libproxy | |
parent | 9eabf582d6dd8e11d21ab82afdfaa5a0340797e1 (diff) | |
download | libproxy-de89bb19e86631f6c8c3a754a71f65f2a70a2397.tar.gz |
On win32, init WSA in url-test
git-svn-id: http://libproxy.googlecode.com/svn/trunk@770 c587cffe-e639-0410-9787-d7902ae8ed56
Diffstat (limited to 'libproxy')
-rw-r--r-- | libproxy/test/url-test.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libproxy/test/url-test.cpp b/libproxy/test/url-test.cpp index 6f1184f..b66ae35 100644 --- a/libproxy/test/url-test.cpp +++ b/libproxy/test/url-test.cpp @@ -59,6 +59,12 @@ int main() { bool rtv = true; +#ifdef WIN32 + WSADATA wsadata; + WORD vers = MAKEWORD(2, 2); + WSAStartup(vers, &wsadata); +#endif + try_url ("file:///allo", rtv, "file", "", "", @@ -138,6 +144,10 @@ int main() "", "", "", 80, ""); + +#ifdef WIN32 + WSACleanup(); +#endif return !rtv; } |