aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2021-03-20 16:11:12 +0700
committerAlexander Kriegisch <Alexander@Kriegisch.name>2021-03-20 16:11:12 +0700
commitfa8369ebb82cd9668943173b4f04868b55ab4260 (patch)
tree5c99fa57f2e3047e895d35aa7e4676efb0554bf4
parent2a2f4e20b413c12a634bb6c3732da4da598bad96 (diff)
downloadaspectj-fa8369ebb82cd9668943173b4f04868b55ab4260.tar.gz
aspectj-fa8369ebb82cd9668943173b4f04868b55ab4260.zip
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 <Alexander@Kriegisch.name>
-rw-r--r--tests/src/test/java/org/aspectj/systemtest/incremental/tools/AjdeInteractionTestbed.java9
1 files changed, 8 insertions, 1 deletions
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
+}