kernel32/tests: Skip tests on Win95.
This commit is contained in:
parent
de530b55af
commit
d81aff24c6
|
@ -713,14 +713,17 @@ static int test_DisconnectNamedPipe(void)
|
||||||
DWORD written;
|
DWORD written;
|
||||||
DWORD readden;
|
DWORD readden;
|
||||||
|
|
||||||
|
SetLastError(0xdeadbeef);
|
||||||
hnp = CreateNamedPipe(PIPENAME, PIPE_ACCESS_DUPLEX, PIPE_TYPE_BYTE | PIPE_WAIT,
|
hnp = CreateNamedPipe(PIPENAME, PIPE_ACCESS_DUPLEX, PIPE_TYPE_BYTE | PIPE_WAIT,
|
||||||
/* nMaxInstances */ 1,
|
/* nMaxInstances */ 1,
|
||||||
/* nOutBufSize */ 1024,
|
/* nOutBufSize */ 1024,
|
||||||
/* nInBufSize */ 1024,
|
/* nInBufSize */ 1024,
|
||||||
/* nDefaultWait */ NMPWAIT_USE_DEFAULT_WAIT,
|
/* nDefaultWait */ NMPWAIT_USE_DEFAULT_WAIT,
|
||||||
/* lpSecurityAttrib */ NULL);
|
/* lpSecurityAttrib */ NULL);
|
||||||
if (INVALID_HANDLE_VALUE == hnp) {
|
if ((hnp == INVALID_HANDLE_VALUE /* Win98 */ || !hnp /* Win95 */)
|
||||||
trace ("Seems we have no named pipes.\n");
|
&& GetLastError() == ERROR_CALL_NOT_IMPLEMENTED) {
|
||||||
|
|
||||||
|
win_skip("Named pipes are not implemented\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue