mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 03:12:27 +00:00
tests: Add some debugging to test_memory_overhead
This test is flaky. Add some debugging to identify what the bad value is. See: #760 Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
eb3d9d15bf
commit
cb220ae184
@ -3706,10 +3706,12 @@ mod tests {
|
||||
|
||||
thread::sleep(std::time::Duration::new(20, 0));
|
||||
|
||||
aver!(
|
||||
tb,
|
||||
get_vmm_overhead(child.id(), guest_memory_size_kb) <= MAXIMUM_VMM_OVERHEAD_KB
|
||||
let overhead = get_vmm_overhead(child.id(), guest_memory_size_kb);
|
||||
eprintln!(
|
||||
"Guest memory overhead: {} vs {}",
|
||||
overhead, MAXIMUM_VMM_OVERHEAD_KB
|
||||
);
|
||||
aver!(tb, overhead <= MAXIMUM_VMM_OVERHEAD_KB);
|
||||
|
||||
let _ = child.kill();
|
||||
let _ = child.wait();
|
||||
|
Loading…
x
Reference in New Issue
Block a user