Installed test-snippets relies on the srcdir
the installed test-snippets is failing on Debian/Ubuntu CI.
Log from 5.5.1 but master has the same problem https://ci.debian.net/data/autopkgtest/testing/amd64/g/gtksourceview5/25827243/log.gz
# Start of SourceView tests
# Start of Snippets tests
Bail out! GtkSourceView:ERROR:../testsuite/test-snippets.c:46:test_simple: assertion failed (1 == g_strv_length ((gchar **)groups)): (1 == 0)
**
GtkSourceView:ERROR:../testsuite/test-snippets.c:46:test_simple: assertion failed (1 == g_strv_length ((gchar **)groups)): (1 == 0)
FAIL: gtksourceview-5/test-snippets.test (Child process killed by signal 6)
backtrace
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
tid = <optimized out>
ret = 0
pd = <optimized out>
old_mask = {__val = {140737352643776}}
ret = <optimized out>
#1 __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3 0x00007ffff6cb4c86 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
ret = <optimized out>
#4 0x00007ffff6c9b7fc in __GI_abort () at ./stdlib/abort.c:79
save_stage = 1
act = {__sigaction_handler = {sa_handler = 0x20, sa_sigaction = 0x20}, sa_mask = {__val = {93824995939072, 140737488344856, 140737351872327, 93824994298880, 0, 93824995912640, 0, 206158430248, 5763565581578767616, 140737488344864, 18446744073709551488, 2, 140737352646112, 93824992762117, 140737488344960, 0}}, sa_flags = -154036029, sa_restorer = 0x5555555d5558}
#5 0x00007ffff7d7ad03 in g_assertion_message
(domain=<optimized out>, file=0x5555555d5905 "../testsuite/test-snippets.c", line=<optimized out>, func=<optimized out>, message=<optimized out>) at ../../../glib/gtestutils.c:3256
lstr = "46\000\000\000\000\000\000 \000\000\000\000\000\000\000\260P\331\367\377\177\000\000 \000\000\000\000\000\000"
s = 0x5555558d6bc0 "V", <incomplete sequence \322>
#6 0x00007ffff7dd8509 in g_assertion_message_cmpnum
(domain=0x5555555d5558 "GtkSourceView", file=0x5555555d5905 "../testsuite/test-snippets.c", line=46, func=0x5555555d7450 <__func__.0.lto_priv.0> "test_simple", expr=<optimized out>, arg1=1, cmp=<optimized out>, arg2=0, numtype=105 'i') at ../../../glib/gtestutils.c:3315
s = 0x55555574cc00 "assertion failed (1 == g_strv_length ((gchar **)groups)): (1 == 0)"
#7 0x0000555555578c94 in test_simple () at ../testsuite/test-snippets.c:46
__n1 = 1
__n2 = 0
mgr = 0x7fffdc00b2a0
snippet = <optimized out>
groups = 0x55555587da60
__func__ = "test_simple"
#8 0x00007ffff7dda46e in test_case_run (tc=0x555555749d80) at ../../../glib/gtestutils.c:2933
local_error = 0x0
test_run_timer = 0x5555558be2b0
largs = {<invalid float value>, 5.13014759796443600502e-4937, 5.13014759796439955303e-4937}
fixture = 0x0
old_base = 0x0
old_free_list = 0x0
filename_free_list = 0x0
success = 0
tc = 0x555555749d80
n_bad = 0
old_name = 0x555555921770 "/SourceView/Snippets"
iter = 0x555555719010 = {0x555555749d80, 0x7fffdc00b210, 0x7fffdc00b240, 0x7fffdc00b270}
__func__ = "g_test_run_suite_internal"
#9 g_test_run_suite_internal (suite=suite@entry=0x5555558d15a0, path=path@entry=0x0) at ../../../glib/gtestutils.c:3021
tc = 0x555555749d80
n_bad = 0
old_name = 0x555555921770 "/SourceView/Snippets"
iter = 0x555555719010 = {0x555555749d80, 0x7fffdc00b210, 0x7fffdc00b240, 0x7fffdc00b270}
__func__ = "g_test_run_suite_internal"
#10 0x00007ffff7dda1d5 in g_test_run_suite_internal (suite=suite@entry=0x7fffe8015360, path=path@entry=0x0) at ../../../glib/gtestutils.c:3038
ts = 0x5555558d15a0
n_bad = 0
old_name = 0x555555920f70 "/SourceView"
iter = 0x55555575c570 = {0x5555558d15a0}
__func__ = "g_test_run_suite_internal"
#11 0x00007ffff7dda1d5 in g_test_run_suite_internal (suite=suite@entry=0x7fffe800ae80, path=path@entry=0x0) at ../../../glib/gtestutils.c:3038
ts = 0x7fffe8015360
n_bad = 0
old_name = 0x555555941c30 "/"
iter = 0x55555574cb40 = {0x7fffe8015360}
__func__ = "g_test_run_suite_internal"
#12 0x00007ffff7dda972 in g_test_run_suite (suite=suite@entry=0x7fffe800ae80) at ../../../glib/gtestutils.c:3115
n_bad = 0
__func__ = "g_test_run_suite"
#13 0x00007ffff7dda9dd in g_test_run () at ../../../glib/gtestutils.c:2234
ret = <optimized out>
suite = 0x7fffe800ae80
#14 g_test_run () at ../../../glib/gtestutils.c:2221
#15 0x00005555555702f3 in main (argc=<optimized out>, argv=<optimized out>) at ../testsuite/test-snippets.c:169
what's weird is that a local build of the same source/package doesn't show the issue, but it seems it sometime starts or stop working on the real system as well like if the result was somewhat depending of the state of the system?
Edited by Sébastien Bacher