c480ed
From ef6054cc51d7a847e1d34b74b28b76fd1c1bb6da Mon Sep 17 00:00:00 2001
c480ed
Message-Id: <ef6054cc51d7a847e1d34b74b28b76fd1c1bb6da@dist-git>
c480ed
From: John Ferlan <jferlan@redhat.com>
c480ed
Date: Mon, 1 Jul 2019 17:08:06 +0200
c480ed
Subject: [PATCH] tests: Use correct function name in error path
c480ed
MIME-Version: 1.0
c480ed
Content-Type: text/plain; charset=UTF-8
c480ed
Content-Transfer-Encoding: 8bit
c480ed
c480ed
Commit id 5eb61e6846 neglected to change the name in the wrong value
c480ed
output to virCgroupGetPercpuStats from virCgroupGetMemoryUsage.
c480ed
c480ed
Signed-off-by: John Ferlan <jferlan@redhat.com>
c480ed
(cherry picked from commit 4608af30f9f9a4089b530d85d9b11c2f88424a09)
c480ed
c480ed
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1689297
c480ed
c480ed
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
c480ed
Message-Id: <e1e0e9efc289cf396e173031d787e45f416dc474.1561993100.git.phrdina@redhat.com>
c480ed
Reviewed-by: Ján Tomko <jtomko@redhat.com>
c480ed
---
c480ed
 tests/vircgrouptest.c | 2 +-
c480ed
 1 file changed, 1 insertion(+), 1 deletion(-)
c480ed
c480ed
diff --git a/tests/vircgrouptest.c b/tests/vircgrouptest.c
c480ed
index 7fde50b463..118b1bc246 100644
c480ed
--- a/tests/vircgrouptest.c
c480ed
+++ b/tests/vircgrouptest.c
c480ed
@@ -757,7 +757,7 @@ static int testCgroupGetPercpuStats(const void *args ATTRIBUTE_UNUSED)
c480ed
 
c480ed
         if (params[i].value.ul != expected[i]) {
c480ed
             fprintf(stderr,
c480ed
-                    "Wrong value from virCgroupGetMemoryUsage at %zu (expected %llu)\n",
c480ed
+                    "Wrong value from virCgroupGetPercpuStats at %zu (expected %llu)\n",
c480ed
                     i, params[i].value.ul);
c480ed
             goto cleanup;
c480ed
         }
c480ed
-- 
c480ed
2.22.0
c480ed