]> source.dussan.org Git - aspectj.git/commitdiff
two new incremental tests, each of which fails if run first but not otherwise (assumi...
authorwisberg <wisberg>
Fri, 9 May 2003 07:22:06 +0000 (07:22 +0000)
committerwisberg <wisberg>
Fri, 9 May 2003 07:22:06 +0000 (07:22 +0000)
tests/ajcTestsFailing.xml
tests/incremental/defaultPackage/src/Main.20.java [new file with mode: 0644]
tests/incremental/defaultPackage/src/Main.java [new file with mode: 0644]
tests/incremental/defaultPackage/src/lib/Lib.java [new file with mode: 0644]
tests/incremental/interPackage/src/app/Main.20.java [new file with mode: 0644]
tests/incremental/interPackage/src/app/Main.java [new file with mode: 0644]
tests/incremental/interPackage/src/lib/Lib.java [new file with mode: 0644]

index 2b914897ef990450711593bb2a1f721400256d04..4609f86b94bfdbbc7ae238ff7893128e13b34335 100644 (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">
diff --git a/tests/incremental/defaultPackage/src/Main.20.java b/tests/incremental/defaultPackage/src/Main.20.java
new file mode 100644 (file)
index 0000000..ad7e80c
--- /dev/null
@@ -0,0 +1,7 @@
+
+
+public class Main {
+       public static void main(String[] args) {
+               lib.Lib.f(); // bug: unable to resolve lib.Lib after change
+       }
+}
diff --git a/tests/incremental/defaultPackage/src/Main.java b/tests/incremental/defaultPackage/src/Main.java
new file mode 100644 (file)
index 0000000..2d48a57
--- /dev/null
@@ -0,0 +1,7 @@
+
+
+public class Main {
+       public static void main(String[] args) {
+               lib.Lib.f();
+       }
+}
diff --git a/tests/incremental/defaultPackage/src/lib/Lib.java b/tests/incremental/defaultPackage/src/lib/Lib.java
new file mode 100644 (file)
index 0000000..ec9ffe3
--- /dev/null
@@ -0,0 +1,7 @@
+
+package lib;
+
+public class Lib {
+       public static void f(){}
+}
+
diff --git a/tests/incremental/interPackage/src/app/Main.20.java b/tests/incremental/interPackage/src/app/Main.20.java
new file mode 100644 (file)
index 0000000..085cf6f
--- /dev/null
@@ -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
+       }
+}
diff --git a/tests/incremental/interPackage/src/app/Main.java b/tests/incremental/interPackage/src/app/Main.java
new file mode 100644 (file)
index 0000000..c114a1c
--- /dev/null
@@ -0,0 +1,8 @@
+
+package app;
+
+public class Main {
+       public static void main(String[] args) {
+               lib.Lib.f();
+       }
+}
diff --git a/tests/incremental/interPackage/src/lib/Lib.java b/tests/incremental/interPackage/src/lib/Lib.java
new file mode 100644 (file)
index 0000000..ec9ffe3
--- /dev/null
@@ -0,0 +1,7 @@
+
+package lib;
+
+public class Lib {
+       public static void f(){}
+}
+