GNOME Bugzilla – Bug 722651
Don't run tests that depend on disabled loaders
Last modified: 2014-01-25 21:37:58 UTC
The PNG, JPEG, JPEG2000 and TIFF loaders depend on external libraries and so can be disabled. The test suite assumes they're available. This can result in the test suite failing some loaders are disabled.
Created attachment 266804 [details] [review] Respect loaders being disabled in the test sutie
This patch uses g_test_skip() where possible but it seems that gnome-desktop-testing-runner doesn't know about skipped tests and still counts them as failed.
To elaborate on the previous comment, this happens: root@nuc:~# gnome-desktop-testing-runner gdk-pixbuf/pixbuf-stream Running test: /usr/share/installed-tests/gdk-pixbuf/pixbuf-stream.test # random seed: R02Sa05820724ebe9b32697f09e5235c16ce ok 1 /pixbuf/stream # SKIP PNG loader not enabled ok 2 /pixbuf/stream/async # SKIP PNG loader not enabled ok 3 /pixbuf/stream/scale # SKIP PNG loader not enabled ok 4 /pixbuf/stream/scale/async # SKIP PNG loader not enabled 1..4 Test gdk-pixbuf/pixbuf-stream.test failed: Child process exited with code 4 SUMMARY: total: 1 passed: 0 skipped: 0 failed: 1 Unless GTest can be taught to detect tests that entirely skip, it's probably best to change stream to use the same disabling idiom as the other tests I patched.
Review of attachment 266804 [details] [review]: Apart from configure defining HAVE_... and the code using WITH_, I think it would be nicer to do this with a runtime check, using gdk_pixbuf_get_formats ::: tests/pixbuf-icc.c @@ +77,3 @@ g_test_init (&argc, &argv, NULL); +#if WITH_LIBPNG Mismatch between WITH and HAVE ?
See bug 709894 for the all-testcases-skipped issue