kernel32/tests: Remove a redundant check for ERROR_CALL_NOT_IMPLEMENTED.
This commit is contained in:
parent
b3e65ba399
commit
545b6989f2
@ -62,13 +62,6 @@ static void test_CreateNamedPipe(int pipemode)
|
|||||||
/* nInBufSize */ 1024,
|
/* nInBufSize */ 1024,
|
||||||
/* nDefaultWait */ NMPWAIT_USE_DEFAULT_WAIT,
|
/* nDefaultWait */ NMPWAIT_USE_DEFAULT_WAIT,
|
||||||
/* lpSecurityAttrib */ NULL);
|
/* lpSecurityAttrib */ NULL);
|
||||||
|
|
||||||
if (hnp == INVALID_HANDLE_VALUE && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED) {
|
|
||||||
/* Is this the right way to notify user of skipped tests? */
|
|
||||||
ok(hnp == INVALID_HANDLE_VALUE && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED,
|
|
||||||
"CreateNamedPipe not supported on this platform, skipping tests.\n");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
ok(hnp == INVALID_HANDLE_VALUE && GetLastError() == ERROR_INVALID_NAME,
|
ok(hnp == INVALID_HANDLE_VALUE && GetLastError() == ERROR_INVALID_NAME,
|
||||||
"CreateNamedPipe should fail if name doesn't start with \\\\.\\pipe\n");
|
"CreateNamedPipe should fail if name doesn't start with \\\\.\\pipe\n");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user