From afb35f52be29d62aabaed41402481a8fce90b085 Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Thu, 11 Mar 2021 08:16:28 +0700 Subject: [PATCH] AjcTestCase cosmetics: surround command in failure report by quotes This is the same for successful tests in class CompilationResult. Signed-off-by: Alexander Kriegisch --- .../src/test/java/org/aspectj/tools/ajc/AjcTestCase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.aspectj.ajdt.core/src/test/java/org/aspectj/tools/ajc/AjcTestCase.java b/org.aspectj.ajdt.core/src/test/java/org/aspectj/tools/ajc/AjcTestCase.java index 91fbc9b86..d1395ac81 100644 --- a/org.aspectj.ajdt.core/src/test/java/org/aspectj/tools/ajc/AjcTestCase.java +++ b/org.aspectj.ajdt.core/src/test/java/org/aspectj/tools/ajc/AjcTestCase.java @@ -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); } } -- 2.39.5