Merge lp:~unity-team/libqtdbustest/handle-crashing-child-process into lp:libqtdbustest

Proposed by Pete Woods
Status: Merged
Approved by: Antti Kaijanmäki
Approved revision: 33
Merged at revision: 33
Proposed branch: lp:~unity-team/libqtdbustest/handle-crashing-child-process
Merge into: lp:libqtdbustest
Diff against target: 28 lines (+7/-4)
1 file modified
src/qdbus-test-runner/qdbus-simple-test-runner.cpp (+7/-4)
To merge this branch: bzr merge lp:~unity-team/libqtdbustest/handle-crashing-child-process
Reviewer Review Type Date Requested Status
Antti Kaijanmäki (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+211586@code.launchpad.net

Commit message

Correctly handle crashing child processes

Description of the change

* Is your branch in sync with latest trunk (e.g. bzr pull lp:trunk -> no changes)
  * Yes
 * Did you build your software in a clean sbuild/pbuilder chroot or ppa?
  * Yes
 * Did you build your software in a clean sbuild/pbuilder armhf chroot or ppa?
  * Yes
 * Has your component "TestPlan” been executed successfully on emulator, N4?
  * Yes
 * Has a 5 minute exploratory testing run been executed on N4?
  * Yes
 * If you changed the packaging (debian), did you subscribe a core-dev to this MP?
  * N/A
 * If you changed the UI, did you subscribe the design-reviewers to this MP?
  * No change
 * What components might get impacted by your changes?
  * Unity7
  * Unity8
 * Have you requested review by the teams of these owning components?
  * Yes

Check List:
https://wiki.ubuntu.com/Process/Merges/Checklists/libqtdbustest

Test Plan:
https://wiki.ubuntu.com/Process/Merges/TestPlan/libqtdbustest

Silo:
<waiting for silo>

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Antti Kaijanmäki (kaijanmaki) wrote :

LGTM.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/qdbus-test-runner/qdbus-simple-test-runner.cpp'
--- src/qdbus-test-runner/qdbus-simple-test-runner.cpp 2013-11-13 10:13:18 +0000
+++ src/qdbus-test-runner/qdbus-simple-test-runner.cpp 2014-03-18 17:21:56 +0000
@@ -32,7 +32,10 @@
32Q_OBJECT32Q_OBJECT
3333
34public Q_SLOTS:34public Q_SLOTS:
35 void finished(int exitCode) {35 void finished(int exitCode, QProcess::ExitStatus exitStatus) {
36 if (exitStatus == QProcess::CrashExit && exitCode == 0) {
37 exitCode = 1;
38 }
36 QCoreApplication::exit(exitCode);39 QCoreApplication::exit(exitCode);
37 }40 }
38};41};
@@ -65,9 +68,9 @@
65 runner.startServices();68 runner.startServices();
6669
67 ExitListener listener;70 ExitListener listener;
68 QObject::connect(&service->underlyingProcess(), SIGNAL(finished(int)),71 QObject::connect(&service->underlyingProcess(),
69 &listener,72 SIGNAL(finished(int, QProcess::ExitStatus)), &listener,
70 SLOT(finished(int)));73 SLOT(finished(int, QProcess::ExitStatus)));
7174
72 return application.exec();75 return application.exec();
73}76}

Subscribers

People subscribed via source and target branches

to all changes: