You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by cd...@apache.org on 2014/11/28 15:53:03 UTC

git commit: [flex-falcon] [refs/heads/develop] - Added a check if the flashplayer command references an existing file.

Repository: flex-falcon
Updated Branches:
  refs/heads/develop 1b58752f8 -> 1ea4d634b


Added a check if the flashplayer command references an existing file.


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/1ea4d634
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/1ea4d634
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/1ea4d634

Branch: refs/heads/develop
Commit: 1ea4d634b86c8ae9fa0706c288cf6447bf8b16c2
Parents: 1b58752
Author: Christofer Dutz <ch...@codecentric.de>
Authored: Fri Nov 28 15:52:57 2014 +0100
Committer: Christofer Dutz <ch...@codecentric.de>
Committed: Fri Nov 28 15:52:57 2014 +0100

----------------------------------------------------------------------
 .../feature-tests/mxml/tags/MXMLFeatureTestsBase.java          | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/1ea4d634/compiler.tests/feature-tests/mxml/tags/MXMLFeatureTestsBase.java
----------------------------------------------------------------------
diff --git a/compiler.tests/feature-tests/mxml/tags/MXMLFeatureTestsBase.java b/compiler.tests/feature-tests/mxml/tags/MXMLFeatureTestsBase.java
index fb007e9..068d668 100644
--- a/compiler.tests/feature-tests/mxml/tags/MXMLFeatureTestsBase.java
+++ b/compiler.tests/feature-tests/mxml/tags/MXMLFeatureTestsBase.java
@@ -137,6 +137,12 @@ public class MXMLFeatureTestsBase
 		}
 		assertThat(sb.toString(), exitCode, is(0));
 
+		// Check the existence of the flashplayer executable
+		File playerExecutable = new File(FLASHPLAYER);
+		if(!playerExecutable.isFile() || !playerExecutable.exists()) {
+			fail("The flashplayer executable " + FLASHPLAYER + " doesn't exist.");
+		}
+
 		// Run the SWF in the standalone player amd wait until the SWF calls System.exit().
 		String swf = FilenameNormalization.normalize(tempMXMLFile.getAbsolutePath());
 		swf = swf.replace(".mxml", ".swf");