[PATCH 07/33] virhostcputest: linuxCPUStatsCompareFiles: Don't check return value of virBufferContentAndReset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The buffer won't encounter OOM condition nowadays

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 tests/virhostcputest.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/tests/virhostcputest.c b/tests/virhostcputest.c
index 786a363e48..2608f0becc 100644
--- a/tests/virhostcputest.c
+++ b/tests/virhostcputest.c
@@ -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;
-- 
2.29.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux