From 39a1132293d41b7a265eb6f6399547a63208c03a Mon Sep 17 00:00:00 2001 From: John Bintz Date: Tue, 12 Apr 2011 07:29:00 -0400 Subject: [PATCH] exit out faster --- ext/jasmine-webkit-specrunner/specrunner.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/jasmine-webkit-specrunner/specrunner.cpp b/ext/jasmine-webkit-specrunner/specrunner.cpp index 3accd22..7fed6e4 100644 --- a/ext/jasmine-webkit-specrunner/specrunner.cpp +++ b/ext/jasmine-webkit-specrunner/specrunner.cpp @@ -106,6 +106,7 @@ void HeadlessSpecRunner::errorLog(const QString &msg, int lineNumber, const QStr std::cout << std::endl; hasErrors = true; + m_runs = 0; m_ticker.start(200, this); } @@ -149,7 +150,7 @@ void HeadlessSpecRunner::timerEvent(QTimerEvent *event) if (event->timerId() != m_ticker.timerId()) return; - if (hasErrors && m_runs > 5) + if (hasErrors && m_runs > 2) QApplication::instance()->exit(1); if (!hasElement(".jasmine_reporter") && !hasElement(".runner.running"))