File: 1001_disable-suicidal-process-test.patch

package info (click to toggle)
libqtdbustest 0.4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 364 kB
  • sloc: cpp: 565; sh: 59; makefile: 28
file content (36 lines) | stat: -rw-r--r-- 1,320 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Description: Disable SuicidalProcess unit test
Author: Guido Berhoerster <guido+ubports@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;