You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by jo...@apache.org on 2019/04/04 22:37:45 UTC
[royale-compiler] 02/03: ASFeatureTestsBase: do not add 'Unexpected
compilation problems:' to result string unless there are actually some
problems
This is an automated email from the ASF dual-hosted git repository.
joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
commit 0e3fbc7d90b41c4b765588d359a2fb64a683b837
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Thu Apr 4 12:05:09 2019 -0700
ASFeatureTestsBase: do not add 'Unexpected compilation problems:' to result string unless there are actually some problems
---
compiler/src/test/java/as/ASFeatureTestsBase.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compiler/src/test/java/as/ASFeatureTestsBase.java b/compiler/src/test/java/as/ASFeatureTestsBase.java
index 9a5cf71..0b2c597 100644
--- a/compiler/src/test/java/as/ASFeatureTestsBase.java
+++ b/compiler/src/test/java/as/ASFeatureTestsBase.java
@@ -154,7 +154,7 @@ public class ASFeatureTestsBase
// Check that there were no compilation problems.
List<ICompilerProblem> problems = mxmlc.getProblems().getProblems();
- StringBuilder sb = new StringBuilder(checkExitCode ? "Unexpected compilation problems:\n" : "");
+ StringBuilder sb = new StringBuilder(checkExitCode && problems.size() > 0 ? "Unexpected compilation problems:\n" : "");
for (ICompilerProblem problem : problems)
{
sb.append(problem.toString());