mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 11:13:38 +00:00
kernel32/tests: Fix the PROCESS_BASIC_INFORMATION exit status type.
This commit is contained in:
parent
e55c432a91
commit
2f3c8be54f
|
@ -38,7 +38,7 @@
|
|||
|
||||
struct PROCESS_BASIC_INFORMATION_PRIVATE
|
||||
{
|
||||
DWORD_PTR ExitStatus;
|
||||
NTSTATUS ExitStatus;
|
||||
PPEB PebBaseAddress;
|
||||
DWORD_PTR AffinityMask;
|
||||
DWORD_PTR BasePriority;
|
||||
|
@ -3004,7 +3004,7 @@ static void child_process(const char *dll_name, DWORD target_offset)
|
|||
ret = pNtQueryInformationProcess(process, ProcessBasicInformation, &pbi, sizeof(pbi), NULL);
|
||||
ok(!ret, "NtQueryInformationProcess error %#lx\n", ret);
|
||||
ok(pbi.ExitStatus == STILL_ACTIVE || pbi.ExitStatus == 195,
|
||||
"expected STILL_ACTIVE, got %Iu\n", pbi.ExitStatus);
|
||||
"expected STILL_ACTIVE, got %lu\n", pbi.ExitStatus);
|
||||
affinity = 1;
|
||||
ret = pNtSetInformationProcess(process, ProcessAffinityMask, &affinity, sizeof(affinity));
|
||||
ok(!ret, "NtSetInformationProcess error %#lx\n", ret);
|
||||
|
@ -3040,7 +3040,7 @@ static void child_process(const char *dll_name, DWORD target_offset)
|
|||
ret = pNtQueryInformationProcess(process, ProcessBasicInformation, &pbi, sizeof(pbi), NULL);
|
||||
ok(!ret, "NtQueryInformationProcess error %#lx\n", ret);
|
||||
ok(pbi.ExitStatus == STILL_ACTIVE || pbi.ExitStatus == 195,
|
||||
"expected STILL_ACTIVE, got %Iu\n", pbi.ExitStatus);
|
||||
"expected STILL_ACTIVE, got %lu\n", pbi.ExitStatus);
|
||||
affinity = 1;
|
||||
ret = pNtSetInformationProcess(process, ProcessAffinityMask, &affinity, sizeof(affinity));
|
||||
ok(!ret, "NtSetInformationProcess error %#lx\n", ret);
|
||||
|
@ -3555,7 +3555,7 @@ static void test_ExitProcess(void)
|
|||
memset(&pbi, 0, sizeof(pbi));
|
||||
ret = pNtQueryInformationProcess(pi.hProcess, ProcessBasicInformation, &pbi, sizeof(pbi), NULL);
|
||||
ok(!ret, "NtQueryInformationProcess error %#lx\n", ret);
|
||||
ok(pbi.ExitStatus == 198, "expected 198, got %Iu\n", pbi.ExitStatus);
|
||||
ok(pbi.ExitStatus == 198, "expected 198, got %lu\n", pbi.ExitStatus);
|
||||
affinity = 1;
|
||||
ret = pNtSetInformationProcess(pi.hProcess, ProcessAffinityMask, &affinity, sizeof(affinity));
|
||||
ok(ret == STATUS_PROCESS_IS_TERMINATING, "expected STATUS_PROCESS_IS_TERMINATING, got %#lx\n", ret);
|
||||
|
|
Loading…
Reference in a new issue