Change-Id: Ib0c68629cfe430a0d13b1504f86bfa78e85007b4
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
void tst_QDeclarativeDebugJS::cleanupTestCase()
{
- if (process)
+ if (process) {
+ process->stop();
delete process;
+ }
if (client)
delete client;
void tst_QDeclarativeDebugJS::cleanup()
{
- if (process)
+ if (process) {
+ process->stop();
delete process;
+ }
if (client)
delete client;
void QDeclarativeDebugProcess::stop()
{
if (m_process.state() != QProcess::NotRunning) {
- m_process.terminate();
+ m_process.kill();
m_process.waitForFinished(5000);
}
}
bool waitForSessionStart();
QString output() const;
+ void stop();
private slots:
void processAppOutput();
private:
- void stop();
-
-private:
QString m_executable;
QProcess m_process;
QString m_outputBuffer;