mirror of
https://github.com/reactos/wine.git
synced 2024-12-04 01:41:18 +00:00
kernel32/tests: Add tests for adding a terminated process to a job object.
This commit is contained in:
parent
6cd34c9002
commit
ddd3d1689c
@ -2245,6 +2245,23 @@ static void test_TerminateJobObject(void)
|
|||||||
|
|
||||||
CloseHandle(pi.hProcess);
|
CloseHandle(pi.hProcess);
|
||||||
CloseHandle(pi.hThread);
|
CloseHandle(pi.hThread);
|
||||||
|
|
||||||
|
/* Test adding an already terminated process to a job object */
|
||||||
|
create_process("exit", &pi);
|
||||||
|
|
||||||
|
dwret = WaitForSingleObject(pi.hProcess, 1000);
|
||||||
|
ok(dwret == WAIT_OBJECT_0, "WaitForSingleObject returned %u\n", dwret);
|
||||||
|
|
||||||
|
SetLastError(0xdeadbeef);
|
||||||
|
ret = pAssignProcessToJobObject(job, pi.hProcess);
|
||||||
|
todo_wine
|
||||||
|
ok(!ret, "AssignProcessToJobObject unexpectedly succeeded\n");
|
||||||
|
todo_wine
|
||||||
|
expect_eq_d(ERROR_ACCESS_DENIED, GetLastError());
|
||||||
|
|
||||||
|
CloseHandle(pi.hProcess);
|
||||||
|
CloseHandle(pi.hThread);
|
||||||
|
|
||||||
CloseHandle(job);
|
CloseHandle(job);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user