Package: libqtdbustest
Version: 0.2+bzr42+repack1-13
Currently, TestSuicidalProcess checks whether the launched process
has the correct arguments and is still alive via ps, the value of
argv[0] depends on how the process is exec'd which is an
implementation detail and the used ps arguments as well as the
resulting output are non-portable. This leads to build failures,
thus the test should be disabled until it gets reimplemented
upstream by the UBports project.
Attached patch should replace the existing patch
1001_use-full-path-when-executing-sleep.patch.
--
Guido Berhoerster
Description: Disable SuicidalProcess unit test
Author: Guido Berhoerster <guido+ubpo...@berhoerster.name>
Abstract:
The test checks whether the process has the correct arguments and is still
alive via ps, the value of argv[0] depends on how the process is exec'd which
is an implementation detail and the used ps arguments as well as the resulting
output are non-portable. This leads to build failures, disable the test until
it gets reimplemented upstream by the UBports project.
--- libqtdbustest-0.2+bzr42.orig/tests/libqtdbustest/TestSuicidalProcess.cpp
+++ libqtdbustest-0.2+bzr42/tests/libqtdbustest/TestSuicidalProcess.cpp
@@ -27,13 +27,13 @@ using namespace QtDBusTest;
namespace {
-class TestSuicidalProcess: public Test {
+class DISABLED_TestSuicidalProcess: public Test {
protected:
- TestSuicidalProcess() {
+ DISABLED_TestSuicidalProcess() {
process.setWatchdogCommand(TEST_QTDBUSTEST_WATCHDOG_BIN);
}
- virtual ~TestSuicidalProcess() {
+ virtual ~DISABLED_TestSuicidalProcess() {
process.kill();
process.waitForFinished();
}
@@ -41,7 +41,7 @@ protected:
SuicidalProcess process;
};
-TEST_F(TestSuicidalProcess, BehavesLikeNormalQProcess) {
+TEST_F(DISABLED_TestSuicidalProcess, BehavesLikeNormalQProcess) {
process.start("sleep", QStringList() << "5");
QProcess pgrep;