[rkward-cvs] SF.net SVN: rkward:[2693] trunk/rkward/rkward/scriptbackends/phpbackend.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Tue Oct 6 16:06:05 UTC 2009


Revision: 2693
          http://rkward.svn.sourceforge.net/rkward/?rev=2693&view=rev
Author:   tfry
Date:     2009-10-06 16:06:04 +0000 (Tue, 06 Oct 2009)

Log Message:
-----------
Apparently QProcess::state() is unreliable at times, causing failures in automated tests.

Modified Paths:
--------------
    trunk/rkward/rkward/scriptbackends/phpbackend.cpp

Modified: trunk/rkward/rkward/scriptbackends/phpbackend.cpp
===================================================================
--- trunk/rkward/rkward/scriptbackends/phpbackend.cpp	2009-10-06 15:11:00 UTC (rev 2692)
+++ trunk/rkward/rkward/scriptbackends/phpbackend.cpp	2009-10-06 16:06:04 UTC (rev 2693)
@@ -100,7 +100,7 @@
 void PHPBackend::tryNextFunction () {
 	RK_TRACE (PHP);
 
-	if (php_process && (php_process->state () == QProcess::Running) && (!busy) && (!command_stack.isEmpty ())) {
+	if (php_process && (!dead) && (!busy) && (!command_stack.isEmpty ())) {
 	/// clean up previous command if applicable
 		if (command_stack.first ()->complete) {
 			delete command_stack.takeFirst ();


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list