dcavalca / rpms / qemu

Forked from rpms/qemu a year ago
Clone

Blame 0001-tests-fix-modules-test-duplicate-test-case-error.patch

b4072b
From: Cole Robinson <crobinso@redhat.com>
b4072b
Date: Wed, 13 Nov 2019 16:05:11 -0500
b4072b
Subject: [PATCH] tests: fix modules-test 'duplicate test case' error
b4072b
b4072b
./configure --enable-sdl --audio-drv-list=sdl --enable-modules
b4072b
b4072b
Will generate two identical test names: /$arch/module/load/sdl
b4072b
Which generates an error like:
b4072b
b4072b
(tests/modules-test:23814): GLib-ERROR **: 18:23:06.359: duplicate test case path: /aarch64//module/load/sdl
b4072b
b4072b
Add the subsystem prefix in the name as well, so instead we get:
b4072b
b4072b
/$arch/module/load/audio-sdl
b4072b
/$arch/module/load/ui-sdl
b4072b
b4072b
Signed-off-by: Cole Robinson <crobinso@redhat.com>
b4072b
---
b4072b
 tests/modules-test.c | 3 ++-
b4072b
 1 file changed, 2 insertions(+), 1 deletion(-)
b4072b
b4072b
diff --git a/tests/modules-test.c b/tests/modules-test.c
b4072b
index d1a6ace218..88217686e1 100644
b4072b
--- a/tests/modules-test.c
b4072b
+++ b/tests/modules-test.c
b4072b
@@ -64,7 +64,8 @@ int main(int argc, char *argv[])
b4072b
     g_test_init(&argc, &argv, NULL);
b4072b
 
b4072b
     for (i = 0; i < G_N_ELEMENTS(modules); i += 2) {
b4072b
-        char *testname = g_strdup_printf("/module/load/%s", modules[i + 1]);
b4072b
+        char *testname = g_strdup_printf("/module/load/%s%s",
b4072b
+                                         modules[i], modules[i + 1]);
b4072b
         qtest_add_data_func(testname, modules + i, test_modules_load);
b4072b
         g_free(testname);
b4072b
     }