Paul Vriens : kernel32/tests: Skip tests on Win95.

Alexandre Julliard julliard at winehq.org
Mon Sep 15 06:54:27 CDT 2008


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

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Sat Sep 13 14:05:12 2008 +0200

kernel32/tests: Skip tests on Win95.

---

 dlls/kernel32/tests/pipe.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/dlls/kernel32/tests/pipe.c b/dlls/kernel32/tests/pipe.c
index 8de2e97..2d45702 100644
--- a/dlls/kernel32/tests/pipe.c
+++ b/dlls/kernel32/tests/pipe.c
@@ -713,14 +713,17 @@ static int test_DisconnectNamedPipe(void)
     DWORD written;
     DWORD readden;
 
+    SetLastError(0xdeadbeef);
     hnp = CreateNamedPipe(PIPENAME, PIPE_ACCESS_DUPLEX, PIPE_TYPE_BYTE | PIPE_WAIT,
         /* nMaxInstances */ 1,
         /* nOutBufSize */ 1024,
         /* nInBufSize */ 1024,
         /* nDefaultWait */ NMPWAIT_USE_DEFAULT_WAIT,
         /* lpSecurityAttrib */ NULL);
-    if (INVALID_HANDLE_VALUE == hnp) {
-        trace ("Seems we have no named pipes.\n");
+    if ((hnp == INVALID_HANDLE_VALUE /* Win98 */ || !hnp /* Win95 */)
+        && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED) {
+
+        win_skip("Named pipes are not implemented\n");
         return 1;
     }
 




More information about the wine-cvs mailing list