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
fc6af061
Commit
fc6af061
authored
Jan 16, 2023
by
Huw Davies
Committed by
Alexandre Julliard
Feb 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4/tests: Remove a failing test.
parent
36bb7175
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
28 deletions
+14
-28
rpc.c
dlls/rpcrt4/tests/rpc.c
+14
-28
No files found.
dlls/rpcrt4/tests/rpc.c
View file @
fc6af061
...
@@ -158,41 +158,27 @@ static void test_UuidFromString(void)
...
@@ -158,41 +158,27 @@ static void test_UuidFromString(void)
static
void
test_DceErrorInqTextA
(
void
)
static
void
test_DceErrorInqTextA
(
void
)
{
{
char
bufferInvalid
[
1024
];
char
bufferInvalid
[
1024
];
char
buffer
[
1024
];
/* The required size is not documented but would
char
buffer
[
1024
];
* appear to be 256.
*/
DWORD
dwCount
;
DWORD
dwCount
;
RPC_STATUS
status
;
dwCount
=
FormatMessageA
(
FORMAT_MESSAGE_FROM_SYSTEM
|
FORMAT_MESSAGE_IGNORE_INSERTS
,
NULL
,
dwCount
=
FormatMessageA
(
FORMAT_MESSAGE_FROM_SYSTEM
|
FORMAT_MESSAGE_IGNORE_INSERTS
,
NULL
,
RPC_S_NOT_RPC_ERROR
,
0
,
bufferInvalid
,
ARRAY_SIZE
(
bufferInvalid
),
NULL
);
RPC_S_NOT_RPC_ERROR
,
0
,
bufferInvalid
,
ARRAY_SIZE
(
bufferInvalid
),
NULL
);
ok
(
dwCount
,
"Cannot set up for DceErrorInqText
\n
"
);
/* A random sample of DceErrorInqText */
/* 0 is success */
/* 0 is success */
ok
((
DceErrorInqTextA
(
0
,
(
unsigned
char
*
)
buffer
)
==
RPC_S_OK
),
status
=
DceErrorInqTextA
(
0
,
(
unsigned
char
*
)
buffer
);
"DceErrorInqTextA(0...)
\n
"
);
ok
(
status
==
RPC_S_OK
,
"got %lx
\n
"
,
status
);
/* A real RPC_S error */
ok
((
DceErrorInqTextA
(
RPC_S_INVALID_STRING_UUID
,
(
unsigned
char
*
)
buffer
)
==
RPC_S_OK
),
"DceErrorInqTextA(valid...)
\n
"
);
if
(
dwCount
)
/* A real RPC_S error */
{
status
=
DceErrorInqTextA
(
RPC_S_INVALID_STRING_UUID
,
(
unsigned
char
*
)
buffer
);
/* A message for which FormatMessage should fail
ok
(
status
==
RPC_S_OK
,
"got %lx
\n
"
,
status
);
* which should return RPC_S_OK and the
* fixed "not valid" message
/* A message for which FormatMessage should fail which should return RPC_S_OK and the
*/
* fixed "not valid" message */
ok
((
DceErrorInqTextA
(
35
,
(
unsigned
char
*
)
buffer
)
==
RPC_S_OK
&&
status
=
DceErrorInqTextA
(
35
,
(
unsigned
char
*
)
buffer
);
strcmp
(
buffer
,
bufferInvalid
)
==
0
),
ok
(
status
==
RPC_S_OK
,
"got %lx
\n
"
,
status
);
"DceErrorInqTextA(unformattable...)
\n
"
);
ok
(
!
strcmp
(
buffer
,
bufferInvalid
),
"got %s vs %s
\n
"
,
wine_dbgstr_a
(
buffer
),
wine_dbgstr_a
(
bufferInvalid
));
/* One for which FormatMessage should succeed but
* DceErrorInqText should "fail"
* 3814 is generally quite a long message
*/
ok
((
DceErrorInqTextA
(
3814
,
(
unsigned
char
*
)
buffer
)
==
RPC_S_OK
&&
strcmp
(
buffer
,
bufferInvalid
)
==
0
),
"DceErrorInqTextA(deviation...)
\n
"
);
}
else
ok
(
0
,
"Cannot set up for DceErrorInqText
\n
"
);
}
}
static
RPC_DISPATCH_FUNCTION
IFoo_table
[]
=
static
RPC_DISPATCH_FUNCTION
IFoo_table
[]
=
...
...
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