Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ba17c25e
Commit
ba17c25e
authored
Apr 25, 2007
by
Dan Hipschman
Committed by
Alexandre Julliard
Apr 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Add a testcase for RPCs with fixed-size arrays.
parent
a67c37f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
server.c
dlls/rpcrt4/tests/server.c
+9
-0
server.idl
dlls/rpcrt4/tests/server.idl
+1
-0
No files found.
dlls/rpcrt4/tests/server.c
View file @
ba17c25e
...
...
@@ -108,6 +108,12 @@ s_square_half_long(long x, long *y)
return
x
*
x
;
}
int
s_sum_fixed_array
(
int
a
[
5
])
{
return
a
[
0
]
+
a
[
1
]
+
a
[
2
]
+
a
[
3
]
+
a
[
4
];
}
void
s_stop
(
void
)
{
...
...
@@ -147,6 +153,7 @@ static void
basic_tests
(
void
)
{
static
char
string
[]
=
"I am a string"
;
static
int
f
[
5
]
=
{
1
,
3
,
0
,
-
2
,
-
4
};
static
vector_t
a
=
{
1
,
3
,
7
};
double
u
,
v
;
float
s
,
t
;
...
...
@@ -183,6 +190,8 @@ basic_tests(void)
q
=
square_half_long
(
3
,
&
r
);
ok
(
q
==
9
,
"RPC square_half_long
\n
"
);
ok
(
r
==
1
,
"RPC square_half_long
\n
"
);
ok
(
sum_fixed_array
(
f
)
==
-
2
,
"RPC sum_fixed_array
\n
"
);
}
static
void
...
...
dlls/rpcrt4/tests/server.idl
View file @
ba17c25e
...
...
@@ -41,5 +41,6 @@ interface IServer
double
square_half
(
double
x
,
[
out
]
double
*
y
)
;
float
square_half_float
(
float
x
,
[
out
]
float
*
y
)
;
long
square_half_long
(
long
x
,
[
out
]
long
*
y
)
;
int
sum_fixed_array
(
int
a
[
5
]
)
;
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