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:
Rob Bradford 2020-05-05 10:06:21 +01:00 committed by Sebastien Boeuf
parent eb3d9d15bf
commit cb220ae184

View File

@ -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();