blob: da8ce68df9a1406e92a56f4d727bd8d44baf2561 [file] [log] [blame]
Andrew Geissler220dafd2023-10-04 10:18:08 -05001From dc208bafc57c1ccaa0ca260f99c8b4c976271ebc Mon Sep 17 00:00:00 2001
2From: Markus Volk <f_l_k@t-online.de>
3Date: Sat, 16 Sep 2023 14:02:57 +0200
4Subject: [PATCH] xb-self-test.c: hardcode G_TEST_SRCDIR
5
6This avoids:
7 libxmlb-0.3.14-r0 do_package_qa: QA Issue: File
8 /usr/libexec/installed-tests/libxmlb/xb-self-test in package libxmlb-ptest
9 contains reference to TMPDIR [buildpaths]
10
11and also fixes the runtime for the ptest.
12
13Upstream-Status: Inappropriate [oe-specific]
14
15Signed-off-by: Markus Volk <f_l_k@t-online.de>
16---
17 src/xb-self-test.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/src/xb-self-test.c b/src/xb-self-test.c
21index 47d9728..8b3dd0e 100644
22--- a/src/xb-self-test.c
23+++ b/src/xb-self-test.c
24@@ -2870,7 +2870,7 @@ xb_speed_func(void)
25 int
26 main(int argc, char **argv)
27 {
28- g_setenv("G_TEST_SRCDIR", SRCDIR, FALSE);
29+ g_setenv("G_TEST_SRCDIR", "/usr/libexec/installed-tests/libxmlb", FALSE);
30
31 g_test_init(&argc, &argv, NULL);
32
33--
342.41.0
35