From 020382b29815c9965e81d6cf74ccfa89ad3d2d65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Thu, 31 May 2018 19:20:13 +0200 Subject: [PATCH] virjsontest: store name in testInfo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Give the testing function access to the test name instead of only passing it to virTestRun. Signed-off-by: Ján Tomko Reviewed-by: Daniel P. Berrangé --- tests/virjsontest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/virjsontest.c b/tests/virjsontest.c index d42413d11d..779bf441bd 100644 --- a/tests/virjsontest.c +++ b/tests/virjsontest.c @@ -12,6 +12,7 @@ #define VIR_FROM_THIS VIR_FROM_NONE struct testInfo { + const char *name; const char *doc; const char *expect; bool pass; @@ -481,7 +482,7 @@ mymain(void) #define DO_TEST_FULL(name, cmd, doc, expect, pass) \ do { \ - struct testInfo info = { doc, expect, pass }; \ + struct testInfo info = { name, doc, expect, pass }; \ if (virTestRun(name, testJSON ## cmd, &info) < 0) \ ret = -1; \ } while (0) -- GitLab