Browse Source

two new incremental tests, each of which fails if run first but not otherwise (assuming the output directory is not added to the classpath).

tags/V1_1_0_RC2
wisberg 21 years ago
parent
commit
f871509ff1

+ 27
- 0
tests/ajcTestsFailing.xml View File

@@ -4,6 +4,32 @@
<!-- contains valid tests that the compiler has never passed -->
<suite>

<!-- either of these tests fail for me when run first -->

<ajc-test dir="incremental/defaultPackage"
keywords="incremental-test"
title="change sources in default package">
<compile
staging="true"
options="-incremental"
sourceroots="src"/>
<run class="Main"/>
<inc-compile tag="20"/>
<run class="Main"/>
</ajc-test>

<ajc-test dir="incremental/interPackage"
keywords="incremental-test"
title="change source">
<compile
staging="true"
options="-incremental"
sourceroots="src"/>
<run class="app.Main"/>
<inc-compile tag="20"/>
<run class="app.Main"/>
</ajc-test>

<!-- expected messages the same for these tests. note:
- that pointcut-and not supported in message text TODO
- no test on adviceexecution()
@@ -12,6 +38,7 @@
listed as, e.g., app.Main.class.
Should get from filename attribute)
-->

<ajc-test dir="new/binaryWarnings/src" pr="37020"
title="declare warnings on main">
<compile files="aspects/MainWarnings.java,app/Main.java">

+ 7
- 0
tests/incremental/defaultPackage/src/Main.20.java View File

@@ -0,0 +1,7 @@


public class Main {
public static void main(String[] args) {
lib.Lib.f(); // bug: unable to resolve lib.Lib after change
}
}

+ 7
- 0
tests/incremental/defaultPackage/src/Main.java View File

@@ -0,0 +1,7 @@


public class Main {
public static void main(String[] args) {
lib.Lib.f();
}
}

+ 7
- 0
tests/incremental/defaultPackage/src/lib/Lib.java View File

@@ -0,0 +1,7 @@

package lib;

public class Lib {
public static void f(){}
}


+ 8
- 0
tests/incremental/interPackage/src/app/Main.20.java View File

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

package app;

public class Main {
public static void main(String[] args) {
lib.Lib.f(); // bug: unable to resolve lib.Lib after change
}
}

+ 8
- 0
tests/incremental/interPackage/src/app/Main.java View File

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

package app;

public class Main {
public static void main(String[] args) {
lib.Lib.f();
}
}

+ 7
- 0
tests/incremental/interPackage/src/lib/Lib.java View File

@@ -0,0 +1,7 @@

package lib;

public class Lib {
public static void f(){}
}


Loading…
Cancel
Save