Przeglądaj źródła

test for pr84033 promoted from failing suite to real suite.

tags/preDefaultReweavable
aclement 18 lat temu
rodzic
commit
e21bf1e36e

+ 0
- 9
tests/ajcTestsFailing.xml Wyświetl plik

<run class="Test_AroundVarBug"/> <run class="Test_AroundVarBug"/>
</ajc-test> </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> </suite>

+ 6
- 0
tests/bugs/incremental-declare-error/changes/Aspect.20.java Wyświetl plik


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 Wyświetl plik


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 Wyświetl plik


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 Wyświetl plik

copyFileAndDoIncrementalBuild("changes/X.20.aj","src/X.aj"); 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 Wyświetl plik

<compile staging="true" options="-incremental,-verbose,-emacssym" sourceroots="src"/> <compile staging="true" options="-incremental,-verbose,-emacssym" sourceroots="src"/>
<!--inc-compile tag="20"/--> <!--inc-compile tag="20"/-->
</ajc-test> </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>

Ładowanie…
Anuluj
Zapisz