Browse Source

test for pr84033 promoted from failing suite to real suite.

tags/preDefaultReweavable
aclement 18 years ago
parent
commit
e21bf1e36e

+ 0
- 9
tests/ajcTestsFailing.xml View File

@@ -153,13 +153,4 @@
<run class="Test_AroundVarBug"/>
</ajc-test>

<ajc-test dir="bugs/incremental-declare-error" pr="84033"
title="incremental declare error persists after fix">
<compile files="pack/Aspect.java,pack/Main.java">
<message kind="error" line="6" text="main"/>
</compile>
<inc-compile tag="20"/>
<run class="pack.Main"/>
</ajc-test>

</suite>

+ 6
- 0
tests/bugs/incremental-declare-error/changes/Aspect.20.java View File

@@ -0,0 +1,6 @@

package pack;

public aspect Aspect {
declare error : execution(private static void Main.main(String[])) : "main";
}

+ 6
- 0
tests/bugs/incremental-declare-error/src/pack/Aspect.java View File

@@ -0,0 +1,6 @@

package pack;

public aspect Aspect {
declare error : execution(public static void Main.main(String[])) : "main";
}

+ 8
- 0
tests/bugs/incremental-declare-error/src/pack/Main.java View File

@@ -0,0 +1,8 @@

package pack;

/** @testcase PR#84033 incremental declare error persists after fix */
public class Main {
public static void main(String[] args) { // CE 6 on first pass, not second
}
}

+ 7
- 0
tests/src/org/aspectj/systemtest/incremental/IncrementalTests.java View File

@@ -256,5 +256,12 @@ public class IncrementalTests extends org.aspectj.testing.XMLBasedAjcTestCase {
copyFileAndDoIncrementalBuild("changes/X.20.aj","src/X.aj");
}
public void testPersistingDeow_pr84033() throws Exception {
runTest("incremental declare error persists after fix");
copyFileAndDoIncrementalBuild("changes/Aspect.20.java", "src/pack/Aspect.java");
nextIncrement(true);
RunResult before = run("pack.Main");
}
}


+ 11
- 0
tests/src/org/aspectj/systemtest/incremental/incremental-junit-tests.xml View File

@@ -377,4 +377,15 @@
<compile staging="true" options="-incremental,-verbose,-emacssym" sourceroots="src"/>
<!--inc-compile tag="20"/-->
</ajc-test>
<ajc-test dir="bugs/incremental-declare-error" pr="84033"
title="incremental declare error persists after fix">
<compile staging="true"
options="-incremental,-verbose"
sourceroots="src">
<message kind="error" line="6" text="main"/>
</compile>
<!--inc-compile tag="20"/-->
<!--run class="pack.Main"/-->
</ajc-test>

Loading…
Cancel
Save