mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
test_infra: Test cleanup of unknown name returns false
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
committed by
Rob Bradford
parent
6e8c2bd2b3
commit
0a2d078479
@@ -2652,4 +2652,9 @@ mod unit_tests {
|
|||||||
assert!(!is_alive(pid1));
|
assert!(!is_alive(pid1));
|
||||||
assert!(!is_alive(pid2));
|
assert!(!is_alive(pid2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn process_registry_cleanup_unknown() {
|
||||||
|
assert!(!ProcessRegistry::cleanup("nonexistent"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user