Alexandre Julliard : ntdll/tests: Don' t bother testing the port functions if creating the port failed.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jan 10 05:35:45 CST 2007


Module: wine
Branch: master
Commit: 56407742b5f5ed32cd83bdddbb65b2fb5ee38d58
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=56407742b5f5ed32cd83bdddbb65b2fb5ee38d58

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Jan 10 11:30:47 2007 +0100

ntdll/tests: Don't bother testing the port functions if creating the port failed.

---

 dlls/ntdll/tests/port.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/ntdll/tests/port.c b/dlls/ntdll/tests/port.c
index af9facb..c64067d 100644
--- a/dlls/ntdll/tests/port.c
+++ b/dlls/ntdll/tests/port.c
@@ -192,7 +192,8 @@ static DWORD WINAPI test_ports_client(LP
     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);




More information about the wine-cvs mailing list