From 56407742b5f5ed32cd83bdddbb65b2fb5ee38d58 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 10 Jan 2007 11:30:47 +0100 Subject: [PATCH] ntdll/tests: Don't bother testing the port functions if creating the port failed. --- dlls/ntdll/tests/port.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/ntdll/tests/port.c b/dlls/ntdll/tests/port.c index af9facb58b8..c64067d13a2 100644 --- a/dlls/ntdll/tests/port.c +++ b/dlls/ntdll/tests/port.c @@ -192,7 +192,8 @@ static DWORD WINAPI test_ports_client(LPVOID arg) sqos.EffectiveOnly = TRUE; status = pNtConnectPort(&PortHandle, &port, &sqos, 0, 0, &len, NULL, NULL); - ok(status == STATUS_SUCCESS, "Expected STATUS_SUCCESS, got %d\n", status); + todo_wine ok(status == STATUS_SUCCESS, "Expected STATUS_SUCCESS, got %d\n", status); + if (status != STATUS_SUCCESS) return 1; status = pNtRegisterThreadTerminatePort(PortHandle); ok(status == STATUS_SUCCESS, "Expected STATUS_SUCCESS, got %d\n", status); @@ -248,6 +249,7 @@ static void test_ports_server(void) { ok(status == STATUS_SUCCESS, "Expected STATUS_SUCCESS, got %d\n", status); } + if (status != STATUS_SUCCESS) return; size = FIELD_OFFSET(LPC_MESSAGE, Data) + MAX_MESSAGE_LEN; LpcMessage = HeapAlloc(GetProcessHeap(), 0, size);