[Fusionforge-commits] r10202 - trunk/tests/code/syntax

Roland Mas lolando at libremir.placard.fr.eu.org
Thu Jul 8 10:35:33 CEST 2010


Author: lolando
Date: 2010-07-08 10:35:33 +0200 (Thu, 08 Jul 2010)
New Revision: 10202

Modified:
   trunk/tests/code/syntax/SyntaxTest.php
Log:
Cope with tail(1) complaining about empty files

Modified: trunk/tests/code/syntax/SyntaxTest.php
===================================================================
--- trunk/tests/code/syntax/SyntaxTest.php	2010-07-08 08:35:11 UTC (rev 10201)
+++ trunk/tests/code/syntax/SyntaxTest.php	2010-07-08 08:35:33 UTC (rev 10202)
@@ -82,7 +82,7 @@
      */
     public function testEmptyLastLine()
     {
-	    $output = `cd .. ; find src tests -name '*.php' -type f | while read i ; do [ -z "\$(tail -n 1 \$i)" ] && echo \$i ; done`;
+	    $output = `cd .. ; find src tests -name '*.php' -type f | while read i ; do [ -s \$i ] && [ -z "\$(tail -n 1 \$i)" ] && echo \$i ; done`;
 	    $this->assertEquals('', $output);
     }
 }




More information about the Fusionforge-commits mailing list