mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
virhostcputest: linuxCPUStatsCompareFiles: Don't check return value of virBufferContentAndReset
The buffer won't encounter OOM condition nowadays Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
parent
542b2b2914
commit
e8d6a982b6
@ -141,10 +141,7 @@ linuxCPUStatsCompareFiles(const char *cpustatfile,
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (!(actualData = virBufferContentAndReset(&buf))) {
|
||||
virReportOOMError();
|
||||
goto fail;
|
||||
}
|
||||
actualData = virBufferContentAndReset(&buf);
|
||||
|
||||
if (virTestCompareToFile(actualData, outfile) < 0)
|
||||
goto fail;
|
||||
|
Loading…
Reference in New Issue
Block a user