From 4343691ba5248e7dc221763203230c8244c568be Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 3 Feb 2009 17:33:41 +0000 Subject: [PATCH] 263323: broken aspect weaving --- .../tools/MultiProjectIncrementalTests.java | 32 ++++++++++++++++--- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java index c61202b2f..a06426e48 100644 --- a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java +++ b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java @@ -275,19 +275,43 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa List l = getCompilerErrorMessages(p); assertEquals("Unexpected compiler error", 0, l.size()); } - - /*public void testNPEGenericCtor_pr260944() { +/* + public void testImports() { AjdeInteractionTestbed.VERBOSE = true; - String p = "pr260944"; + String p = "importProb"; initialiseProject(p); build(p); checkWasFullBuild(); alter(p, "inc1"); + addProjectSourceFileChanged(p, getProjectRelativePath(p, "src/p/Code.java")); + addProjectSourceFileChanged(p, getProjectRelativePath(p, "src/q/Asp.java")); + build(p); + checkWasntFullBuild(); + List l = getCompilerErrorMessages(p); + assertEquals("Unexpected compiler error", 0, l.size()); + } +*/ + public void testBuildingBrokenCode_pr263323() { + AjdeInteractionTestbed.VERBOSE = true; + String p = "brokenCode"; + initialiseProject(p); + build(p); + checkWasFullBuild(); + alter(p, "inc1"); // break the aspect + build(p); + checkWasntFullBuild(); + alter(p, "inc2"); // whitespace change on affected file build(p); checkWasntFullBuild(); List l = getCompilerErrorMessages(p); assertEquals("Unexpected compiler error", 0, l.size()); - }*/ + } + + /* + * public void testNPEGenericCtor_pr260944() { AjdeInteractionTestbed.VERBOSE = true; String p = "pr260944"; + * initialiseProject(p); build(p); checkWasFullBuild(); alter(p, "inc1"); build(p); checkWasntFullBuild(); List l = + * getCompilerErrorMessages(p); assertEquals("Unexpected compiler error", 0, l.size()); } + */ public void testItdProb() { AjdeInteractionTestbed.VERBOSE = true; -- 2.39.5