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
bb18c5ab
Commit
bb18c5ab
authored
May 27, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4/tests: Comment out a couple of tests that crash on older Windows versions.
parent
7571c1fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
25 deletions
+31
-25
ndr_marshall.c
dlls/rpcrt4/tests/ndr_marshall.c
+31
-25
No files found.
dlls/rpcrt4/tests/ndr_marshall.c
View file @
bb18c5ab
...
...
@@ -301,21 +301,24 @@ todo_wine {
NdrPointerFree
(
&
StubMsg
,
mem
,
formattypes
);
/* again pass address of NULL ptr, but pretend we're a server */
mem
=
NULL
;
StubMsg
.
Buffer
=
StubMsg
.
BufferStart
;
StubMsg
.
IsClient
=
0
;
ptr
=
NdrPointerUnmarshall
(
&
StubMsg
,
&
mem
,
formattypes
,
0
);
ok
(
ptr
==
NULL
,
"%s: ret %p
\n
"
,
msgpfx
,
ptr
);
if
(
formattypes
[
2
]
==
0xd
/* FC_ENUM16 */
)
ok
(
mem
!=
StubMsg
.
BufferStart
+
wiredatalen
-
srcsize
,
"%s: mem points to buffer %p %p
\n
"
,
msgpfx
,
mem
,
StubMsg
.
BufferStart
);
else
ok
(
mem
==
StubMsg
.
BufferStart
+
wiredatalen
-
srcsize
,
"%s: mem doesn't point to buffer %p %p
\n
"
,
msgpfx
,
mem
,
StubMsg
.
BufferStart
);
ok
(
!
cmp
(
mem
,
memsrc
,
size
),
"%s: incorrectly unmarshaled
\n
"
,
msgpfx
);
ok
(
StubMsg
.
Buffer
-
StubMsg
.
BufferStart
==
wiredatalen
,
"%s: Buffer %p Start %p len %d
\n
"
,
msgpfx
,
StubMsg
.
Buffer
,
StubMsg
.
BufferStart
,
wiredatalen
);
ok
(
StubMsg
.
MemorySize
==
0
,
"%s: memorysize %d
\n
"
,
msgpfx
,
StubMsg
.
MemorySize
);
if
(
formattypes
[
2
]
!=
0xd
/* FC_ENUM16 */
)
{
ok
(
my_alloc_called
==
num_additional_allocs
,
"%s: my_alloc got called %d times
\n
"
,
msgpfx
,
my_alloc_called
);
my_alloc_called
=
0
;
if
(
0
)
/* crashes on Win9x and NT4 */
{
mem
=
NULL
;
StubMsg
.
Buffer
=
StubMsg
.
BufferStart
;
StubMsg
.
IsClient
=
0
;
ptr
=
NdrPointerUnmarshall
(
&
StubMsg
,
&
mem
,
formattypes
,
0
);
ok
(
ptr
==
NULL
,
"%s: ret %p
\n
"
,
msgpfx
,
ptr
);
if
(
formattypes
[
2
]
==
0xd
/* FC_ENUM16 */
)
ok
(
mem
!=
StubMsg
.
BufferStart
+
wiredatalen
-
srcsize
,
"%s: mem points to buffer %p %p
\n
"
,
msgpfx
,
mem
,
StubMsg
.
BufferStart
);
else
ok
(
mem
==
StubMsg
.
BufferStart
+
wiredatalen
-
srcsize
,
"%s: mem doesn't point to buffer %p %p
\n
"
,
msgpfx
,
mem
,
StubMsg
.
BufferStart
);
ok
(
!
cmp
(
mem
,
memsrc
,
size
),
"%s: incorrectly unmarshaled
\n
"
,
msgpfx
);
ok
(
StubMsg
.
Buffer
-
StubMsg
.
BufferStart
==
wiredatalen
,
"%s: Buffer %p Start %p len %d
\n
"
,
msgpfx
,
StubMsg
.
Buffer
,
StubMsg
.
BufferStart
,
wiredatalen
);
ok
(
StubMsg
.
MemorySize
==
0
,
"%s: memorysize %d
\n
"
,
msgpfx
,
StubMsg
.
MemorySize
);
if
(
formattypes
[
2
]
!=
0xd
/* FC_ENUM16 */
)
{
ok
(
my_alloc_called
==
num_additional_allocs
,
"%s: my_alloc got called %d times
\n
"
,
msgpfx
,
my_alloc_called
);
my_alloc_called
=
0
;
}
}
}
HeapFree
(
GetProcessHeap
(),
0
,
mem_orig
);
...
...
@@ -770,16 +773,19 @@ todo_wine {
Passing a NULL ptr while we're a client && !must_alloc
crashes on Windows, so we won't do that. */
mem
=
NULL
;
StubMsg
.
IsClient
=
0
;
StubMsg
.
Buffer
=
StubMsg
.
BufferStart
;
ptr
=
NdrSimpleStructUnmarshall
(
&
StubMsg
,
&
mem
,
formattypes
,
0
);
ok
(
ptr
==
NULL
,
"%s: ret %p
\n
"
,
msgpfx
,
ptr
);
ok
(
mem
==
StubMsg
.
BufferStart
,
"%s: mem not equal buffer
\n
"
,
msgpfx
);
ok
(
!
cmp
(
mem
,
memsrc
,
srcsize
),
"%s: incorrectly unmarshaled
\n
"
,
msgpfx
);
ok
(
my_alloc_called
==
num_additional_allocs
,
"%s: my_alloc got called %d times
\n
"
,
msgpfx
,
my_alloc_called
);
my_alloc_called
=
0
;
ok
(
StubMsg
.
MemorySize
==
0
,
"%s: memorysize touched in unmarshal
\n
"
,
msgpfx
);
if
(
0
)
/* crashes on Win9x and NT4 */
{
mem
=
NULL
;
StubMsg
.
IsClient
=
0
;
StubMsg
.
Buffer
=
StubMsg
.
BufferStart
;
ptr
=
NdrSimpleStructUnmarshall
(
&
StubMsg
,
&
mem
,
formattypes
,
FALSE
);
ok
(
ptr
==
NULL
,
"%s: ret %p
\n
"
,
msgpfx
,
ptr
);
ok
(
mem
==
StubMsg
.
BufferStart
,
"%s: mem not equal buffer
\n
"
,
msgpfx
);
ok
(
!
cmp
(
mem
,
memsrc
,
srcsize
),
"%s: incorrectly unmarshaled
\n
"
,
msgpfx
);
ok
(
my_alloc_called
==
num_additional_allocs
,
"%s: my_alloc got called %d times
\n
"
,
msgpfx
,
my_alloc_called
);
my_alloc_called
=
0
;
ok
(
StubMsg
.
MemorySize
==
0
,
"%s: memorysize touched in unmarshal
\n
"
,
msgpfx
);
}
/*** now must_alloc is true ***/
...
...
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