Author: sebb
Date: Sat Sep 17 14:32:42 2011
New Revision: 1171991

URL: http://svn.apache.org/viewvc?rev=1171991&view=rev
Log:
Bug 51839 - "... end of run" printed prematurely

Modified:
    
jakarta/jmeter/trunk/src/core/org/apache/jmeter/engine/StandardJMeterEngine.java
    jakarta/jmeter/trunk/xdocs/changes.xml

Modified: 
jakarta/jmeter/trunk/src/core/org/apache/jmeter/engine/StandardJMeterEngine.java
URL: 
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jmeter/engine/StandardJMeterEngine.java?rev=1171991&r1=1171990&r2=1171991&view=diff
==============================================================================
--- 
jakarta/jmeter/trunk/src/core/org/apache/jmeter/engine/StandardJMeterEngine.java
 (original)
+++ 
jakarta/jmeter/trunk/src/core/org/apache/jmeter/engine/StandardJMeterEngine.java
 Sat Sep 17 14:32:42 2011
@@ -278,11 +278,10 @@ public class StandardJMeterEngine implem
         public void run() {
             running = false;
             engine = null;
-            boolean stopped = false;
             if (now) {
                 tellThreadsToStop();
                 pause(10 * allThreads.size());
-                stopped = verifyThreadsStopped();
+                boolean stopped = verifyThreadsStopped();
                 if (!stopped) {  // we totally failed to stop the test
                     if (JMeter.isNonGUI()) {
                         // TODO should we call test listeners? That might hang 
too ...
@@ -303,10 +302,6 @@ public class StandardJMeterEngine implem
             } else {
                 stopAllThreads();
             }
-            //  for TGs which run consecutively or when thread don't stop 
-            if (serialized || !stopped) {
-                notifyTestListenersOfEnd(testListenersSave);
-            }
         }
     }
 

Modified: jakarta/jmeter/trunk/xdocs/changes.xml
URL: 
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/changes.xml?rev=1171991&r1=1171990&r2=1171991&view=diff
==============================================================================
--- jakarta/jmeter/trunk/xdocs/changes.xml (original)
+++ jakarta/jmeter/trunk/xdocs/changes.xml Sat Sep 17 14:32:42 2011
@@ -119,6 +119,7 @@ This can be overridden by setting the JM
 <li>Bug 51831 - Cannot disable UDP server or change the maximum UDP port</li>
 <li>Bug 51821 - Add short-cut for Enabling / Disabling (sub)tree or branches 
in test plan.</li>
 <li>Bug 47921 - Variables not released for GC after JMeterThread exits.</li>
+<li>Bug 51839 - "... end of run" printed prematurely</li>
 </ul>
 
 <!-- ==================================================== -->



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@jakarta.apache.org
For additional commands, e-mail: notifications-h...@jakarta.apache.org

Reply via email to