]> source.dussan.org Git - aspectj.git/commitdiff
AjcTestCase cosmetics: surround command in failure report by quotes
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Thu, 11 Mar 2021 01:16:28 +0000 (08:16 +0700)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Thu, 11 Mar 2021 06:23:40 +0000 (13:23 +0700)
This is the same for successful tests in class CompilationResult.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
org.aspectj.ajdt.core/src/test/java/org/aspectj/tools/ajc/AjcTestCase.java

index 91fbc9b8662b6d7e215d8f4a6428bb3e9166f252..d1395ac81cc84b2d394a1c500d1343a8bf56bb1d 100644 (file)
@@ -476,7 +476,7 @@ public abstract class AjcTestCase extends TestCase {
                        addExtra(failureReport, "error", extraErrors);
                        addExtra(failureReport, "fail", extraFails);
                        addExtra(failureReport, "weaveInfo", extraWeaves);
-                       failureReport.append("\ncommand was: ajc");
+                       failureReport.append("\ncommand was: 'ajc");
                        String[] args = result.getArgs();
                        for (String arg : args) {
                                failureReport.append(" ");
@@ -484,7 +484,7 @@ public abstract class AjcTestCase extends TestCase {
                        }
                        String report = failureReport.toString();
                        System.err.println(failureReport);
-                       fail(message + "\n" + report);
+                       fail(message + "'\n" + report);
                }
        }