Kactivitymanagerd is a libexec executable now so we cannot just execute
it and cannot know it's path. We need to stop it as otherwise ctest does
not terminate the testActivities. This change uses dbus to quit the
kactivitymanagerd.
Details
Details
- Reviewers
davidedmundson - Group Reviewers
KWin - Commits
- R108:9f6b0f98b5ea: Fix the way how we quit kactivitymanagerd from the unit test
ctest did not timeout on testActivities
Diff Detail
Diff Detail
- Repository
- R108 KWin
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
autotests/integration/activities_test.cpp | ||
---|---|---|
36 | unused |
autotests/integration/activities_test.cpp | ||
---|---|---|
36 | Are you sure? /home/martin/src/kde/workspace/kwin/autotests/integration/activities_test.cpp: In member function ‘void KWin::ActivitiesTest::cleanupTestCase()’: /home/martin/src/kde/workspace/kwin/autotests/integration/activities_test.cpp:87:32: error: invalid use of incomplete type ‘class QDBusPendingCall’ QStringLiteral("quit"))); ^ In file included from /usr/include/x86_64-linux-gnu/qt5/QtDBus/QDBusConnection:1:0, from /home/martin/src/kde/workspace/kwin/autotests/integration/activities_test.cpp:34: /usr/include/x86_64-linux-gnu/qt5/QtDBus/qdbusconnection.h:71:7: note: forward declaration of ‘class QDBusPendingCall’ class QDBusPendingCall; ^~~~~~~~~~~~~~~~ autotests/integration/CMakeFiles/testActivities.dir/build.make:62: recipe for target 'autotests/integration/CMakeFiles/testActivities.dir/activities_test.cpp.o' failed make[2]: *** [autotests/integration/CMakeFiles/testActivities.dir/activities_test.cpp.o] Error 1 CMakeFiles/Makefile2:10944: recipe for target 'autotests/integration/CMakeFiles/testActivities.dir/all' failed make[1]: *** [autotests/integration/CMakeFiles/testActivities.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: *** [all] Error 2 *** Failure: Exit code 2 *** asyncCall returns a QDBusPendingCall and without the include it doesn't compile. |