GNOME Bugzilla – Bug 703012
make check fails: Cannot open pixbuf loader module file '.../gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
Last modified: 2014-02-04 00:11:30 UTC
commit 5f8c246aff21a029ef1631571edf275613a6cad3 (current git master) Using my buildtest script, which wipes the install prefix, and git cleans all repos before building them. Last known good commit is 948b5cfcd4ab112050d801d1a05eeb9260591d53. Not sure where exactly this started since the "Forgotten file" problem happened since then. make check-TESTS check-local make[3]: Entering directory `/home/darxus/source/gdk-pixbuf/tests' ================== All 0 tests passed ================== TEST: animation... (pid=3121) /animation/gif: (/home/darxus/source/gdk-pixbuf/tests/.libs/lt-animation:3121): GdkPixbuf-WARNING **: Cannot open pixbuf loader module file '/home/darxus/install.test/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory This likely means that your installation is broken. Try running the command gdk-pixbuf-query-loaders > /home/darxus/install.test/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache to make things work again for the time being. FAIL GTester: last random seed: R02Sd3a291d78b169a0c56c17e7c3b913b92 /bin/bash: line 1: 3120 Terminated G_TEST_SRCDIR="/home/darxus/source/gdk-pixbuf/tests" G_TEST_BUILDDIR="/home/darxus/source/gdk-pixbuf/tests" G_DEBUG=gc-friendly MALLOC_CHECK_=2 MALLOC_PERTURB_=$((${RANDOM:-256} % 256)) gtester --verbose animation pixbuf-icon-serialize pixbuf-randomly-modified pixbuf-threads make[3]: *** [test-nonrecursive] Error 143 make[3]: Leaving directory `/home/darxus/source/gdk-pixbuf/tests' make[2]: *** [check-am] Error 2 make[2]: Leaving directory `/home/darxus/source/gdk-pixbuf/tests' make[1]: *** [check] Error 2 make[1]: Leaving directory `/home/darxus/source/gdk-pixbuf/tests' make: *** [check-recursive] Error 1
Created attachment 259067 [details] [review] Set GDK_PIXBUF_MODULE_FILE when running the tests We create this in the build system, but don't tell the (installed) testsuite to use it.
We were seeing this in Ubuntu: https://launchpadlibrarian.net/155950592/buildlog_ubuntu-trusty-i386.gdk-pixbuf_2.30.0-0ubuntu1_FAILEDTOBUILD.txt.gz & setting this fixes it. I wanted to use AM_TESTS_ENVIRONMENT but it seems like that doesn't work with our test harness (which I'm not familiar with). That or something like it would be better than setting GTESTER like this, but that works for me.
we're now doing TESTS_ENVIRONMENT += GDK_PIXBUF_MODULE_FILE=$(top_builddir)/gdk-pixbuf/loaders.cache and we're not using gtester anymore (switched to the automake tap driver)