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
749bb1db
Commit
749bb1db
authored
Jun 08, 2013
by
André Hentschel
Committed by
Alexandre Julliard
Jun 10, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/tests: Don't test functions directly when reporting WSAGetLastError().
parent
3cefe776
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
sock.c
dlls/ws2_32/tests/sock.c
+12
-6
No files found.
dlls/ws2_32/tests/sock.c
View file @
749bb1db
...
...
@@ -3571,7 +3571,8 @@ static void test_events(int useMessages)
goto
end
;
}
ok
(
!
set_blocking
(
src
,
TRUE
),
"set_blocking failed, error %d
\n
"
,
WSAGetLastError
());
ret
=
set_blocking
(
src
,
TRUE
);
ok
(
!
ret
,
"set_blocking failed, error %d
\n
"
,
WSAGetLastError
());
src2
=
socket
(
AF_INET
,
SOCK_STREAM
,
0
);
if
(
src2
==
INVALID_SOCKET
)
...
...
@@ -3580,7 +3581,8 @@ static void test_events(int useMessages)
goto
end
;
}
ok
(
!
set_blocking
(
src2
,
TRUE
),
"set_blocking failed, error %d
\n
"
,
WSAGetLastError
());
ret
=
set_blocking
(
src2
,
TRUE
);
ok
(
!
ret
,
"set_blocking failed, error %d
\n
"
,
WSAGetLastError
());
len
=
sizeof
(
BOOL
);
if
(
getsockopt
(
src
,
SOL_SOCKET
,
SO_OOBINLINE
,
(
void
*
)
&
bret
,
&
len
)
==
SOCKET_ERROR
)
...
...
@@ -4013,7 +4015,8 @@ static void test_events(int useMessages)
goto
end
;
}
ok
(
!
set_blocking
(
src
,
TRUE
),
"set_blocking failed, error %d
\n
"
,
WSAGetLastError
());
ret
=
set_blocking
(
src
,
TRUE
);
ok
(
!
ret
,
"set_blocking failed, error %d
\n
"
,
WSAGetLastError
());
ret
=
WSAAsyncSelect
(
src2
,
hWnd
,
WM_SOCKET
,
0
);
if
(
ret
)
...
...
@@ -4022,7 +4025,8 @@ static void test_events(int useMessages)
goto
end
;
}
ok
(
!
set_blocking
(
src2
,
TRUE
),
"set_blocking failed, error %d
\n
"
,
WSAGetLastError
());
ret
=
set_blocking
(
src2
,
TRUE
);
ok
(
!
ret
,
"set_blocking failed, error %d
\n
"
,
WSAGetLastError
());
}
else
{
...
...
@@ -4033,7 +4037,8 @@ static void test_events(int useMessages)
goto
end
;
}
ok
(
!
set_blocking
(
src
,
TRUE
),
"set_blocking failed, error %d
\n
"
,
WSAGetLastError
());
ret
=
set_blocking
(
src
,
TRUE
);
ok
(
!
ret
,
"set_blocking failed, error %d
\n
"
,
WSAGetLastError
());
ret
=
WSAEventSelect
(
src2
,
hEvent2
,
0
);
if
(
ret
)
...
...
@@ -4042,7 +4047,8 @@ static void test_events(int useMessages)
goto
end
;
}
ok
(
!
set_blocking
(
src2
,
TRUE
),
"set_blocking failed, error %d
\n
"
,
WSAGetLastError
());
ret
=
set_blocking
(
src2
,
TRUE
);
ok
(
!
ret
,
"set_blocking failed, error %d
\n
"
,
WSAGetLastError
());
}
end:
...
...
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