As you can see the koffice testsuite wants to connect to the X-server which it isn't allowed to. I suggest one of the following: - Check in src_test if there is one x-server the user is allowed to connect to when the testsuite requires a running x-server. - Remove tests that require a running x-server. Error log: make[4]: Leaving directory `/var/tmp/portage/koffice-1.5.2/work/koffice-1.5.2/lib/store/tests' make check-TESTS make[4]: Entering directory `/var/tmp/portage/koffice-1.5.2/work/koffice-1.5.2/lib/store/tests' lt-storage_test: cannot connect to X server FAIL: storage_test framework test OK doctype test OK attributes test OK empty element test OK indent test OK textnode test OK textspan test OK textspan with tabcache OK processinginstruction test OK addManifestEntry OK escaping long cstring OK escaping long qstring OK test config OK writing 30000 XML elements using KoXmlWriter: 97 ms PASS: xmlwritertest =================== 1 of 2 tests failed =================== make[4]: *** [check-TESTS] Fehler 1 make[4]: Leaving directory `/var/tmp/portage/koffice-1.5.2/work/koffice-1.5.2/lib/store/tests' make[3]: *** [check-am] Fehler 2 make[3]: Leaving directory `/var/tmp/portage/koffice-1.5.2/work/koffice-1.5.2/lib/store/tests' make[2]: *** [check-recursive] Fehler 1 make[2]: Leaving directory `/var/tmp/portage/koffice-1.5.2/work/koffice-1.5.2/lib/store' make[1]: *** [check-recursive] Fehler 1 make[1]: Leaving directory `/var/tmp/portage/koffice-1.5.2/work/koffice-1.5.2/lib' make: *** [check-recursive] Fehler 1 !!! ERROR: app-office/koffice-1.5.2 failed.
Same error in app-office/koffice-1.6.1-r1: make check-TESTS make[4]: Entering directory `/var/tmp/portage/app-office/koffice-1.6.1-r1/work/koffice-1.6.1/lib/store/tests' lt-storage_test: cannot connect to X server FAIL: storage_test framework test OK doctype test OK attributes test OK empty element test OK indent test OK textnode test OK textspan test OK textspan with tabcache OK processinginstruction test OK addManifestEntry OK escaping long cstring OK escaping long qstring OK test config OK writing 30000 XML elements using KoXmlWriter: 75 ms PASS: xmlwritertest =================== 1 of 2 tests failed =================== make[4]: *** [check-TESTS] Error 1 make[4]: Leaving directory `/var/tmp/portage/app-office/koffice-1.6.1-r1/work/koffice-1.6.1/lib/store/tests' make[3]: *** [check-am] Error 2 make[3]: Leaving directory `/var/tmp/portage/app-office/koffice-1.6.1-r1/work/koffice-1.6.1/lib/store/tests' make[2]: *** [check-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/app-office/koffice-1.6.1-r1/work/koffice-1.6.1/lib/store' make[1]: *** [check-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-office/koffice-1.6.1-r1/work/koffice-1.6.1/lib' make: *** [check-recursive] Error 1
Using 1.6.1 I get another failure, when FEATURES="test" is enabled: make check-TESTS check-local make[4]: Entering directory `/var/tmp/portage/app-office/koffice-libs-1.6.1/work/koffice-libs-1.6.1/lib/kotext/tests' PASS: kotextformattertest 145 minutes -> PT00H145M00S -> 145 14 days -> P14D -> 14 -15 minutes -> -PT00H15M00S -> -15 -14 days -> -P14D -> -14 PASS: kovariabletest ================== All 2 tests passed ================== kunittestmodrunner modrunner: WARNING: Error loading kunittest_KoUserStyleTester : /var/tmp/portage/app-office/koffice-libs-1.6.1/work/koffice-libs-1.6.1/lib/kotext/tests/kunittest_KoUserStyleTester.so: cannot open shared object file: No such file or directory make[4]: *** [check-local] Error 1 make[4]: Leaving directory `/var/tmp/portage/app-office/koffice-libs-1.6.1/work/koffice-libs-1.6.1/lib/kotext/tests' make[3]: *** [check-am] Error 2 make[3]: Leaving directory `/var/tmp/portage/app-office/koffice-libs-1.6.1/work/koffice-libs-1.6.1/lib/kotext/tests' make[2]: *** [check-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/app-office/koffice-libs-1.6.1/work/koffice-libs-1.6.1/lib/kotext' make[1]: *** [check-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-office/koffice-libs-1.6.1/work/koffice-libs-1.6.1/lib' make: *** [check-recursive] Error 1 !!! ERROR: app-office/koffice-libs-1.6.1 failed. Call stack: ebuild.sh, line 1614: Called dyn_test ebuild.sh, line 1026: Called qa_call 'src_test' environment, line 4915: Called src_test ebuild.sh, line 653: Called die !!! Make check failed. See above for details. !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/var/tmp/portage/app-office/koffice-libs-1.6.1/temp/build.log'.
(In reply to comment #2) > Using 1.6.1 I get another failure, when FEATURES="test" is enabled: My apologies, that's for app-office/koffice-libs-1.6.1. Please let me know if you want a different bug entry for that.
I think I disabled all of the breaking tests for 1.6.x. If there should still be issues, open a new bug, please. Regarding fixing the tests: Take it upstream please. Tests failing because of not being able to connect to X are a different issue: Of course you can't when you build with userpriv in FEATURES and not giving unauthorized X access (e.g. `xhost local:`). As far as I've tested, these tests succeed under the right conditions.