From fa8369ebb82cd9668943173b4f04868b55ab4260 Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Sat, 20 Mar 2021 16:11:12 +0700 Subject: Fix MultiProjectIncrementalTests.testInvalidAspectpath_pr121395 It failed with "RuntimeException: I never heard about what kind of build it was!!" on my (@kriegaex) Windows machine, mostly because in case of a failing full build the corresponding status is never set. TODO: Ensure that 'MyStateListener.informedAboutKindOfBuild' is set for failed builds, too. Signed-off-by: Alexander Kriegisch --- .../systemtest/incremental/tools/AjdeInteractionTestbed.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/src/test/java/org/aspectj/systemtest/incremental/tools/AjdeInteractionTestbed.java b/tests/src/test/java/org/aspectj/systemtest/incremental/tools/AjdeInteractionTestbed.java index 9e6f9d0a1..bac2ec86c 100644 --- a/tests/src/test/java/org/aspectj/systemtest/incremental/tools/AjdeInteractionTestbed.java +++ b/tests/src/test/java/org/aspectj/systemtest/incremental/tools/AjdeInteractionTestbed.java @@ -415,9 +415,16 @@ public class AjdeInteractionTestbed extends TestCase { for (String s : woven) { System.out.println(" :" + s); } + try { if (wasFullBuild()) { System.out.println("It was a batch (full) build"); } + } catch (RuntimeException ignored) { + // There is "RuntimeException: I never heard about what kind of build it was!!" thrown by + // MyStateListener.wasFullBuild(). + // + // TODO: Ensure that 'MyStateListener.informedAboutKindOfBuild' is set for failed builds, too. + } System.out.println("============================================="); } @@ -554,4 +561,4 @@ public class AjdeInteractionTestbed extends TestCase { log(s); } } -} \ No newline at end of file +} -- cgit v1.2.3