Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 399431 - kde-base/kleopatra-4.4.11.1 tests hang (when building against 4.7.97)
Summary: kde-base/kleopatra-4.4.11.1 tests hang (when building against 4.7.97)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: kde4tests
  Show dependency tree
 
Reported: 2012-01-19 23:53 UTC by Andreas K. Hüttel
Modified: 2013-06-22 12:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
test session (testing,5.30 KB, text/plain)
2012-02-05 16:37 UTC, Chris Reffett (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas K. Hüttel archtester gentoo-dev 2012-01-19 23:53:31 UTC
>>> Working in BUILD_DIR: "/var/tmp/portage/kde-base/kleopatra-4.4.11.1/work/kleopatra-4.4.11.1_build"
Test project /var/tmp/portage/kde-base/kleopatra-4.4.11.1/work/kleopatra-4.4.11.1_build
    Start 1: kleo-verifytest

[zzzz...]


Restricted.
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2012-01-25 18:58:01 UTC
1: Test command: /mnt/gen2/tmpdir/portage/kde-base/kleopatra-4.4.11.1/work/kleopatra-4.4.11.1_build/kleopatra/tests/test_verify.shell
1: Test timeout computed to be: 9.99988e+06
1: ********* Start testing of VerifyTest *********
1: Config: Using QTest library 4.8.0, Qt 4.8.0
1: PASS   : VerifyTest::initTestCase()
1: PASS   : VerifyTest::testVerify()
1: PASS   : VerifyTest::testParallelVerifyAndKeyListJobs()
1: 
1: GLib-ERROR **: Creating pipes for GWakeup: Too many open files
1: 
1: /mnt/gen2/tmpdir/portage/kde-base/kleopatra-4.4.11.1/work/kleopatra-4.4.11.1_build/kleopatra/tests/test_verify.shell: line 4: 28665 Trace/breakpoint trap   LD_LIBRARY_PATH=/mnt/gen2/tmpdir/portage/kde-base/kleopatra-4.4.11.1/work/kleopatra-4.4.11.1_build/lib/./:/usr/lib64:/usr/lib64:/usr/lib64/qt4${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} "/mnt/gen2/tmpdir/portage/kde-base/kleopatra-4.4.11.1/work/kleopatra-4.4.11.1_build/kleopatra/tests/test_verify" "$@"
1/1 Test #1: kleo-verifytest ..................***Failed    3.07 sec

0% tests passed, 1 tests failed out of 1

ok, a Glib error Creating pipes for GWakeup.
I guess GWakeup is a Qt function.
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2012-01-29 16:51:06 UTC
gentoo64 kleopatra-4.7.4_build # ctest Test project /mnt/gen2/tmpdir/portage/kde-base/kleopatra-4.7.4/work/kleopatra-4.7.4_build
    Start 1: kleo-verifytest
1/1 Test #1: kleo-verifytest ..................   Passed    8.43 sec

100% tests passed, 0 tests failed out of 1

Total Test time (real) =   8.43 sec

This one I can't fix since related to the dbus dilemma in that the test when run from the ebuild in the sandbox goes Creating pipes; this is its folly.

This relates to making file descriptors and pipes at a low system level that I don't grasp.  I suppose in this case just restricting it is a sensible management option.  We can see the test can pass if run manually which means it doesn't really fail, but letting it run in an emerge will bring it down.
Comment 3 Chris Reffett (RETIRED) gentoo-dev Security 2012-02-05 16:37:25 UTC
Created attachment 300953 [details]
test session

I poked around some, and found that after the tests fail, if I go into ${PORTAGEDIR}/kde-base/kleopatra-4.8.0/work/kleopatra-4.8.0_build/kleopatra/tests/ and run make it builds a couple additional files and subsequent runs of ctest --verbose complete successfully. I've attached a copy-paste of my session in which I ran ctest --verbose and it failed, ran make, and then tested again and it passed/
Comment 4 Chris Reffett (RETIRED) gentoo-dev Security 2012-02-07 04:14:31 UTC
Okay, my best guess is that test_uiserver isn't being built with the proper flags. When I run the "make" command in /var/tmp/portage/kde-base/kleopatra-4.8.0/work/kleopatra-4.8.0_build/kleopatra/tests and diff the results with the original, what I find is that one file, test_uiserver_automoc.cpp has a comment about being built with "-DDISABLE_NEPOMUK_LEGACY -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DQT_NO_CAST_TO_ASCII -D_REENTRANT -DKDE_DEPRECATED_WARNINGS -DKDE4_CMAKE_TOPLEVEL_DIR_LENGTH=46 -D_ASSUAN_ONLY_GPG_ERRORS -DQT_STL -DGPG_ERR_SOURCE_DEFAULT=GPG_ERR_SOURCE_USER_2" That comment does not exist in the original version. However, I don't know enough about automoc/cmake/etc. to know where the error is, so I'd appreciate some help fixing this one.
Comment 5 Chris Reffett (RETIRED) gentoo-dev Security 2012-02-07 04:34:45 UTC
Final note, the file test_verify_automoc.cpp in the same directory does in fact contain that comment even when built by emerge rather than by make.
Comment 6 Andreas K. Hüttel archtester gentoo-dev 2013-06-22 12:01:22 UTC
Tests are restricted. 

As per KDE team decision it makes no sense to keep test-failure bugs open in 
kde-base, so closing.