diff options
author | Shane Kearns <shane.kearns@accenture.com> | 2009-12-22 16:14:59 +0000 |
---|---|---|
committer | Shane Kearns <shane.kearns@sosco.com> | 2010-01-04 15:49:52 +0100 |
commit | 0e94349de0b602f1b6af747b66ef03b22133cc3a (patch) | |
tree | bddd755f649be409c2af2fda9f4ffa8f32d18afc /tools/runonphone/trksignalhandler.h | |
parent | 44f7b73940c67b8e81f52dfc6370453ff07d3aa2 (diff) |
Deal with test cases that crash or hang
Added an optional timeout to runonphone - the application will be killed
after this time. Used when autotesting unattended, as some tests can hang.
Handled the just in time debug halting the application when it is about
to crash, by terminating the application. In future, we could capture a
call stack or something here.
Also added quiet/verbose options to control the amount of output from
runonphone.
Reviewed-by: Janne Koskinen
Diffstat (limited to 'tools/runonphone/trksignalhandler.h')
-rw-r--r-- | tools/runonphone/trksignalhandler.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/runonphone/trksignalhandler.h b/tools/runonphone/trksignalhandler.h index 2b3f3a0245..818aa56ab1 100644 --- a/tools/runonphone/trksignalhandler.h +++ b/tools/runonphone/trksignalhandler.h @@ -44,6 +44,7 @@ #include <QObject> #include <QString> +class TrkSignalHandlerPrivate; class TrkSignalHandler : public QObject { Q_OBJECT @@ -63,6 +64,17 @@ public slots: void applicationOutputReceived(const QString &output); void copyProgress(int percent); void stateChanged(int); + void stopped(uint pc, uint pid, uint tid, const QString& reason); + void timeout(); +signals: + void resume(uint pid, uint tid); + void terminate(); +public: + TrkSignalHandler(); + ~TrkSignalHandler(); + void setLogLevel(int); +private: + TrkSignalHandlerPrivate *d; }; #endif // TRKSIGNALHANDLER_H |