mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-06 09:55:46 +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;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(actualData = virBufferContentAndReset(&buf))) {
|
actualData = virBufferContentAndReset(&buf);
|
||||||
virReportOOMError();
|
|
||||||
goto fail;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (virTestCompareToFile(actualData, outfile) < 0)
|
if (virTestCompareToFile(actualData, outfile) < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
Loading…
Reference in New Issue
Block a user