mirror of
https://github.com/microsoft/WSL.git
synced 2025-12-10 00:44:55 -06:00
Extend WslWaitForLinuxProcess test coverage (#13366)
This commit is contained in:
parent
28bcfe39d6
commit
e9b36a1aac
@ -374,6 +374,15 @@ class LSWTests
|
|||||||
VERIFY_SUCCEEDED(WslWaitForLinuxProcess(vm.get(), pid, 1000, &result));
|
VERIFY_SUCCEEDED(WslWaitForLinuxProcess(vm.get(), pid, 1000, &result));
|
||||||
VERIFY_ARE_EQUAL(result.State, ProcessStateRunning);
|
VERIFY_ARE_EQUAL(result.State, ProcessStateRunning);
|
||||||
|
|
||||||
|
// Verify that the process can still be waited for
|
||||||
|
result = {};
|
||||||
|
VERIFY_SUCCEEDED(WslWaitForLinuxProcess(vm.get(), pid, 1000, &result));
|
||||||
|
VERIFY_ARE_EQUAL(result.State, ProcessStateRunning);
|
||||||
|
|
||||||
|
result = {};
|
||||||
|
VERIFY_SUCCEEDED(WslWaitForLinuxProcess(vm.get(), pid, 0, &result));
|
||||||
|
VERIFY_ARE_EQUAL(result.State, ProcessStateRunning);
|
||||||
|
|
||||||
// Verify that it can be killed.
|
// Verify that it can be killed.
|
||||||
VERIFY_SUCCEEDED(WslSignalLinuxProcess(vm.get(), pid, 9));
|
VERIFY_SUCCEEDED(WslSignalLinuxProcess(vm.get(), pid, 9));
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user