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
8f9df3af
Commit
8f9df3af
authored
Jul 30, 2014
by
Sebastian Lackner
Committed by
Alexandre Julliard
Aug 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Always allow only one correct test result, add todo_wine where necessary.
parent
3e23aa57
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
25 deletions
+0
-25
pipe.c
dlls/kernel32/tests/pipe.c
+0
-25
No files found.
dlls/kernel32/tests/pipe.c
View file @
8f9df3af
...
@@ -153,19 +153,12 @@ static void test_CreateNamedPipe(int pipemode)
...
@@ -153,19 +153,12 @@ static void test_CreateNamedPipe(int pipemode)
ok
(
written
==
sizeof
(
obuf2
),
"write file len 3b
\n
"
);
ok
(
written
==
sizeof
(
obuf2
),
"write file len 3b
\n
"
);
ok
(
PeekNamedPipe
(
hFile
,
ibuf
,
sizeof
(
ibuf
),
&
readden
,
&
avail
,
NULL
),
"Peek3
\n
"
);
ok
(
PeekNamedPipe
(
hFile
,
ibuf
,
sizeof
(
ibuf
),
&
readden
,
&
avail
,
NULL
),
"Peek3
\n
"
);
if
(
pipemode
==
PIPE_TYPE_BYTE
)
{
if
(
pipemode
==
PIPE_TYPE_BYTE
)
{
if
(
readden
!=
sizeof
(
obuf
))
/* Linux only returns the first message */
ok
(
readden
==
sizeof
(
obuf
)
+
sizeof
(
obuf2
),
"peek3 got %d bytes
\n
"
,
readden
);
else
todo_wine
ok
(
readden
==
sizeof
(
obuf
)
+
sizeof
(
obuf2
),
"peek3 got %d bytes
\n
"
,
readden
);
todo_wine
ok
(
readden
==
sizeof
(
obuf
)
+
sizeof
(
obuf2
),
"peek3 got %d bytes
\n
"
,
readden
);
}
}
else
else
{
{
if
(
readden
!=
sizeof
(
obuf
)
+
sizeof
(
obuf2
))
/* MacOS returns both messages */
ok
(
readden
==
sizeof
(
obuf
),
"peek3 got %d bytes
\n
"
,
readden
);
ok
(
readden
==
sizeof
(
obuf
),
"peek3 got %d bytes
\n
"
,
readden
);
else
todo_wine
ok
(
readden
==
sizeof
(
obuf
),
"peek3 got %d bytes
\n
"
,
readden
);
}
}
if
(
avail
!=
sizeof
(
obuf
))
/* older Linux kernels only return the first write here */
ok
(
avail
==
sizeof
(
obuf
)
+
sizeof
(
obuf2
),
"peek3 got %d bytes available
\n
"
,
avail
);
ok
(
avail
==
sizeof
(
obuf
)
+
sizeof
(
obuf2
),
"peek3 got %d bytes available
\n
"
,
avail
);
pbuf
=
ibuf
;
pbuf
=
ibuf
;
ok
(
memcmp
(
obuf
,
pbuf
,
sizeof
(
obuf
))
==
0
,
"pipe content 3a check
\n
"
);
ok
(
memcmp
(
obuf
,
pbuf
,
sizeof
(
obuf
))
==
0
,
"pipe content 3a check
\n
"
);
...
@@ -188,20 +181,12 @@ static void test_CreateNamedPipe(int pipemode)
...
@@ -188,20 +181,12 @@ static void test_CreateNamedPipe(int pipemode)
ok
(
written
==
sizeof
(
obuf2
),
"write file len 4b
\n
"
);
ok
(
written
==
sizeof
(
obuf2
),
"write file len 4b
\n
"
);
ok
(
PeekNamedPipe
(
hnp
,
ibuf
,
sizeof
(
ibuf
),
&
readden
,
&
avail
,
NULL
),
"Peek4
\n
"
);
ok
(
PeekNamedPipe
(
hnp
,
ibuf
,
sizeof
(
ibuf
),
&
readden
,
&
avail
,
NULL
),
"Peek4
\n
"
);
if
(
pipemode
==
PIPE_TYPE_BYTE
)
{
if
(
pipemode
==
PIPE_TYPE_BYTE
)
{
if
(
readden
!=
sizeof
(
obuf
))
/* Linux only returns the first message */
/* should return all 23 bytes */
ok
(
readden
==
sizeof
(
obuf
)
+
sizeof
(
obuf2
),
"peek4 got %d bytes
\n
"
,
readden
);
else
todo_wine
ok
(
readden
==
sizeof
(
obuf
)
+
sizeof
(
obuf2
),
"peek4 got %d bytes
\n
"
,
readden
);
todo_wine
ok
(
readden
==
sizeof
(
obuf
)
+
sizeof
(
obuf2
),
"peek4 got %d bytes
\n
"
,
readden
);
}
}
else
else
{
{
if
(
readden
!=
sizeof
(
obuf
)
+
sizeof
(
obuf2
))
/* MacOS returns both messages */
ok
(
readden
==
sizeof
(
obuf
),
"peek4 got %d bytes
\n
"
,
readden
);
ok
(
readden
==
sizeof
(
obuf
),
"peek4 got %d bytes
\n
"
,
readden
);
else
todo_wine
ok
(
readden
==
sizeof
(
obuf
),
"peek4 got %d bytes
\n
"
,
readden
);
}
}
if
(
avail
!=
sizeof
(
obuf
))
/* older Linux kernels only return the first write here */
ok
(
avail
==
sizeof
(
obuf
)
+
sizeof
(
obuf2
),
"peek4 got %d bytes available
\n
"
,
avail
);
ok
(
avail
==
sizeof
(
obuf
)
+
sizeof
(
obuf2
),
"peek4 got %d bytes available
\n
"
,
avail
);
pbuf
=
ibuf
;
pbuf
=
ibuf
;
ok
(
memcmp
(
obuf
,
pbuf
,
sizeof
(
obuf
))
==
0
,
"pipe content 4a check
\n
"
);
ok
(
memcmp
(
obuf
,
pbuf
,
sizeof
(
obuf
))
==
0
,
"pipe content 4a check
\n
"
);
...
@@ -241,14 +226,8 @@ static void test_CreateNamedPipe(int pipemode)
...
@@ -241,14 +226,8 @@ static void test_CreateNamedPipe(int pipemode)
ok
(
WriteFile
(
hnp
,
obuf2
,
sizeof
(
obuf2
),
&
written
,
NULL
),
" WriteFile5b
\n
"
);
ok
(
WriteFile
(
hnp
,
obuf2
,
sizeof
(
obuf2
),
&
written
,
NULL
),
" WriteFile5b
\n
"
);
ok
(
written
==
sizeof
(
obuf2
),
"write file len 3b
\n
"
);
ok
(
written
==
sizeof
(
obuf2
),
"write file len 3b
\n
"
);
ok
(
PeekNamedPipe
(
hFile
,
ibuf
,
sizeof
(
ibuf
),
&
readden
,
&
avail
,
NULL
),
"Peek5
\n
"
);
ok
(
PeekNamedPipe
(
hFile
,
ibuf
,
sizeof
(
ibuf
),
&
readden
,
&
avail
,
NULL
),
"Peek5
\n
"
);
if
(
readden
!=
sizeof
(
obuf
)
+
sizeof
(
obuf2
))
/* MacOS returns both writes */
ok
(
readden
==
sizeof
(
obuf
),
"peek5 got %d bytes
\n
"
,
readden
);
ok
(
readden
==
sizeof
(
obuf
),
"peek5 got %d bytes
\n
"
,
readden
);
else
todo_wine
ok
(
readden
==
sizeof
(
obuf
),
"peek5 got %d bytes
\n
"
,
readden
);
if
(
avail
!=
sizeof
(
obuf
))
/* older Linux kernels only return the first write here */
ok
(
avail
==
sizeof
(
obuf
)
+
sizeof
(
obuf2
),
"peek5 got %d bytes available
\n
"
,
avail
);
ok
(
avail
==
sizeof
(
obuf
)
+
sizeof
(
obuf2
),
"peek5 got %d bytes available
\n
"
,
avail
);
else
todo_wine
ok
(
avail
==
sizeof
(
obuf
)
+
sizeof
(
obuf2
),
"peek5 got %d bytes available
\n
"
,
avail
);
pbuf
=
ibuf
;
pbuf
=
ibuf
;
ok
(
memcmp
(
obuf
,
pbuf
,
sizeof
(
obuf
))
==
0
,
"content 5a check
\n
"
);
ok
(
memcmp
(
obuf
,
pbuf
,
sizeof
(
obuf
))
==
0
,
"content 5a check
\n
"
);
ok
(
ReadFile
(
hFile
,
ibuf
,
sizeof
(
ibuf
),
&
readden
,
NULL
),
"ReadFile
\n
"
);
ok
(
ReadFile
(
hFile
,
ibuf
,
sizeof
(
ibuf
),
&
readden
,
NULL
),
"ReadFile
\n
"
);
...
@@ -277,11 +256,7 @@ static void test_CreateNamedPipe(int pipemode)
...
@@ -277,11 +256,7 @@ static void test_CreateNamedPipe(int pipemode)
ok
(
WriteFile
(
hFile
,
obuf2
,
sizeof
(
obuf2
),
&
written
,
NULL
),
" WriteFile6b
\n
"
);
ok
(
WriteFile
(
hFile
,
obuf2
,
sizeof
(
obuf2
),
&
written
,
NULL
),
" WriteFile6b
\n
"
);
ok
(
written
==
sizeof
(
obuf2
),
"write file len 6b
\n
"
);
ok
(
written
==
sizeof
(
obuf2
),
"write file len 6b
\n
"
);
ok
(
PeekNamedPipe
(
hnp
,
ibuf
,
sizeof
(
ibuf
),
&
readden
,
&
avail
,
NULL
),
"Peek6
\n
"
);
ok
(
PeekNamedPipe
(
hnp
,
ibuf
,
sizeof
(
ibuf
),
&
readden
,
&
avail
,
NULL
),
"Peek6
\n
"
);
if
(
readden
!=
sizeof
(
obuf
)
+
sizeof
(
obuf2
))
/* MacOS returns both writes */
ok
(
readden
==
sizeof
(
obuf
),
"peek6 got %d bytes
\n
"
,
readden
);
ok
(
readden
==
sizeof
(
obuf
),
"peek6 got %d bytes
\n
"
,
readden
);
else
todo_wine
ok
(
readden
==
sizeof
(
obuf
),
"peek6 got %d bytes
\n
"
,
readden
);
if
(
avail
!=
sizeof
(
obuf
))
/* older Linux kernels only return the first write here */
ok
(
avail
==
sizeof
(
obuf
)
+
sizeof
(
obuf2
),
"peek6b got %d bytes available
\n
"
,
avail
);
ok
(
avail
==
sizeof
(
obuf
)
+
sizeof
(
obuf2
),
"peek6b got %d bytes available
\n
"
,
avail
);
pbuf
=
ibuf
;
pbuf
=
ibuf
;
ok
(
memcmp
(
obuf
,
pbuf
,
sizeof
(
obuf
))
==
0
,
"content 6a check
\n
"
);
ok
(
memcmp
(
obuf
,
pbuf
,
sizeof
(
obuf
))
==
0
,
"content 6a check
\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