From 35eed89c651c87a5e9950f3033c1516358456425 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 17 Dec 2022 08:38:38 -0800 Subject: tests: update g_test_bug_base url from bugzilla to gitlab Also adds a call to g_test_bug() for the one existing testcase associated with a bug in a public bug tracker. Otherwise this is mostly a placeholder for now, as no other tests call g_test_bug() yet to report what bugs they test for. Signed-off-by: Alan Coopersmith --- test/Alloc.c | 2 +- test/Converters.c | 2 +- test/Event.c | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/test/Alloc.c b/test/Alloc.c index 7f02e19..88eca68 100644 --- a/test/Alloc.c +++ b/test/Alloc.c @@ -103,7 +103,7 @@ int main(int argc, char** argv) program_name = argv[0]; g_test_init(&argc, &argv, NULL); - g_test_bug_base("https://bugzilla.freedesktop.org/show_bug.cgi?id="); + g_test_bug_base("https://gitlab.freedesktop.org/xorg/lib/libxt/-/issues/"); g_test_add_func("/Alloc/XtAsprintf/short", test_XtAsprintf_short); g_test_add_func("/Alloc/XtAsprintf/long", test_XtAsprintf_long); diff --git a/test/Converters.c b/test/Converters.c index 46e7f5a..ef3c37c 100644 --- a/test/Converters.c +++ b/test/Converters.c @@ -75,7 +75,7 @@ static void test_XtCvtIntToPixmap(void) int main(int argc, char** argv) { g_test_init(&argc, &argv, NULL); - g_test_bug_base("https://bugzilla.freedesktop.org/show_bug.cgi?id="); + g_test_bug_base("https://gitlab.freedesktop.org/xorg/lib/libxt/-/issues/"); g_test_add_func("/Converters/XtCvtIntToPixmap", test_XtCvtIntToPixmap); diff --git a/test/Event.c b/test/Event.c index bd80c8c..a2f99f9 100644 --- a/test/Event.c +++ b/test/Event.c @@ -57,6 +57,9 @@ static void test_XtAppMainLoop_34715(void) XtAppContext app; struct sigaction sa; + g_test_bug_base("https://bugzilla.freedesktop.org/show_bug.cgi?id="); + g_test_bug("34715"); + XtToolkitInitialize(); app = XtCreateApplicationContext(); XtAppAddTimeOut(app, 1000, _Tick, app); @@ -83,7 +86,7 @@ static void test_XtAppMainLoop_34715(void) int main(int argc, char** argv) { g_test_init(&argc, &argv, NULL); - g_test_bug_base("https://bugzilla.freedesktop.org/show_bug.cgi?id="); + g_test_bug_base("https://gitlab.freedesktop.org/xorg/lib/libxt/-/issues/"); g_test_add_func("/Event/XtAppMainLoop/34715", test_XtAppMainLoop_34715); -- cgit v1.2.1