Fix sync tests on Win98/ME.

This commit is contained in:
Felix Nawothnig 2005-08-01 10:57:13 +00:00 committed by Alexandre Julliard
parent 7c44e00699
commit 71a03671b7
1 changed files with 9 additions and 5 deletions

View File

@ -39,16 +39,20 @@ static void test_signalandwait(void)
if (!pSignalObjectAndWait)
return;
/* events */
/* invalid parameters */
r = pSignalObjectAndWait(NULL, NULL, 0, 0);
if (r == ERROR_INVALID_FUNCTION)
{
trace("SignalObjectAndWait not implemented, skipping tests\n");
return; /* Win98/ME */
}
ok( r == WAIT_FAILED, "should fail\n");
event[0] = CreateEvent(NULL, 0, 0, NULL);
event[1] = CreateEvent(NULL, 1, 1, NULL);
ok( event[0] && event[1], "failed to create event flags\n");
/* invalid parameters */
r = pSignalObjectAndWait(NULL, NULL, 0, 0);
ok( r == WAIT_FAILED, "should fail\n");
r = pSignalObjectAndWait(event[0], NULL, 0, FALSE);
ok( r == WAIT_FAILED, "should fail\n");