Commit fc6af061 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

rpcrt4/tests: Remove a failing test.

parent 36bb7175
...@@ -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[] =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment