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
af271255
Commit
af271255
authored
Nov 18, 2009
by
Rob Shearman
Committed by
Alexandre Julliard
Nov 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Add tests for full pointers.
parent
37793cd5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
server.c
dlls/rpcrt4/tests/server.c
+19
-0
server.idl
dlls/rpcrt4/tests/server.idl
+4
-0
No files found.
dlls/rpcrt4/tests/server.c
View file @
af271255
...
...
@@ -717,6 +717,21 @@ s_get_numbers_struct(numbers_struct_t **ns)
}
void
s_full_pointer_test
(
int
*
a
,
int
*
b
)
{
ok
(
*
a
==
42
,
"Expected *a to be 42 instead of %d
\n
"
,
*
a
);
ok
(
*
b
==
42
,
"Expected *b to be 42 instead of %d
\n
"
,
*
a
);
ok
(
a
==
b
,
"Expected a (%p) to point to the same memory as b (%p)
\n
"
,
a
,
b
);
}
void
s_full_pointer_null_test
(
int
*
a
,
int
*
b
)
{
ok
(
*
a
==
42
,
"Expected *a to be 42 instead of %d
\n
"
,
*
a
);
ok
(
b
==
NULL
,
"Expected b to be NULL instead of %p
\n
"
,
b
);
}
void
s_stop
(
void
)
{
ok
(
RPC_S_OK
==
RpcMgmtStopServerListening
(
NULL
),
"RpcMgmtStopServerListening
\n
"
);
...
...
@@ -1077,6 +1092,7 @@ pointer_tests(void)
void
*
buffer
;
int
*
pa2
;
s123_t
*
s123
;
int
val
=
42
;
ok
(
test_list_length
(
list
)
==
3
,
"RPC test_list_length
\n
"
);
ok
(
square_puint
(
p1
)
==
121
,
"RPC square_puint
\n
"
);
...
...
@@ -1137,6 +1153,9 @@ pointer_tests(void)
s123
=
get_s123
();
ok
(
s123
->
f1
==
1
&&
s123
->
f2
==
2
&&
s123
->
f3
==
3
,
"RPC get_s123
\n
"
);
MIDL_user_free
(
s123
);
full_pointer_test
(
&
val
,
&
val
);
full_pointer_null_test
(
&
val
,
NULL
);
}
static
int
...
...
dlls/rpcrt4/tests/server.idl
View file @
af271255
...
...
@@ -357,5 +357,9 @@ cpp_quote("#endif")
void
get_ranged_enum
(
[
out
]
renum_t
*
re
)
;
void
context_handle_test
(
void
)
;
void
full_pointer_test
(
[
in
,
ptr
]
int
*
a
,
[
in
,
ptr
]
int
*
b
)
;
void
full_pointer_null_test
(
[
in
,
ptr
]
int
*
a
,
[
in
,
ptr
]
int
*
b
)
;
void
stop
(
void
)
;
}
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