[phc-internals] [phc commit] r1421 - branches/saturn/test/framework

codesite-noreply at google.com codesite-noreply at google.com
Thu Jul 3 19:51:38 IST 2008


Author: paul.biggar
Date: Thu Jul  3 11:50:46 2008
New Revision: 1421

Modified:
   branches/saturn/test/framework/compile_calypso.php

Log:
Fail on Calypso warnings as well as errors, since these normally 
indicate something is wrong (and indicate it earlier).


Modified: branches/saturn/test/framework/compile_calypso.php
==============================================================================
--- branches/saturn/test/framework/compile_calypso.php	(original)
+++ branches/saturn/test/framework/compile_calypso.php	Thu Jul  3 
11:50:46 2008
@@ -74,6 +74,12 @@
 			return false;
 		}

+		if (preg_match ("/^WARNING: .*/m", $out, $matches))
+		{
+			$this->async_failure ("Warning in pass: $matches[0]", $async);
+			return false;
+		}
+
 		return $out;
 	}



More information about the phc-internals mailing list