aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/debugger/shared
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@digia.com>2013-08-21 12:30:46 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-21 15:55:32 +0200
commit4f35280bd039c2d2f0c53e936740440f1d887916 (patch)
treeab5f685fc7c5571552f9d6356733c541bbb2ae82 /tests/auto/qml/debugger/shared
parentfe0b3bb05ffb80579233e367f94078da8abd935d (diff)
Debugger: Fix crash when app exits while debugging
Make sure we don't access an already deleted v8engine any more. Task-number: QTBUG-33100 Change-Id: Ic517577ae30b41375cbf9f787cfe0a29121171e2 Reviewed-by: Aurindam Jana <aurindam.jana@digia.com>
Diffstat (limited to 'tests/auto/qml/debugger/shared')
-rw-r--r--tests/auto/qml/debugger/shared/debugutil.cpp10
-rw-r--r--tests/auto/qml/debugger/shared/debugutil_p.h3
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/qml/debugger/shared/debugutil.cpp b/tests/auto/qml/debugger/shared/debugutil.cpp
index ff3140f520..ab27337d41 100644
--- a/tests/auto/qml/debugger/shared/debugutil.cpp
+++ b/tests/auto/qml/debugger/shared/debugutil.cpp
@@ -168,6 +168,16 @@ int QQmlDebugProcess::debugPort() const
return m_port;
}
+bool QQmlDebugProcess::waitForFinished()
+{
+ return m_process.waitForFinished();
+}
+
+QProcess::ExitStatus QQmlDebugProcess::exitStatus() const
+{
+ return m_process.exitStatus();
+}
+
void QQmlDebugProcess::setEnvironment(const QStringList &environment)
{
m_environment = environment;
diff --git a/tests/auto/qml/debugger/shared/debugutil_p.h b/tests/auto/qml/debugger/shared/debugutil_p.h
index 11b16a1fb8..9f9a852fb6 100644
--- a/tests/auto/qml/debugger/shared/debugutil_p.h
+++ b/tests/auto/qml/debugger/shared/debugutil_p.h
@@ -95,6 +95,9 @@ public:
bool waitForSessionStart();
int debugPort() const;
+ bool waitForFinished();
+ QProcess::ExitStatus exitStatus() const;
+
QString output() const;
void stop();