Skip to content

tests: Fix dependency of test.gresource on test-generated.txt

Philip Withnall requested to merge pwithnall/glib:gio-test-dependencies into main

test-generated.txt is listed in test.gresource.xml, so it needs to be specified as a dependency in the custom_target() which uses test.gresource.xml.

Fixes intermittent build failures like:

FAILED: gio/tests/test.gresource
/builds/GNOME/glib/_build/gio/glib-compile-resources --compiler=gcc --target=gio/tests/test.gresource --sourcedir=/builds/GNOME/glib/gio/tests --sourcedir=/builds/GNOME/glib/_build/gio/tests --internal ../gio/tests/test.gresource.xml
../gio/tests/test.gresource.xml: Failed to locate “test-generated.txt” in any source directory.

See !3671 (merged) and #3163 (closed).

Signed-off-by: Philip Withnall philip@tecnocode.co.uk

Merge request reports