aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2022-02-28 09:25:46 +0700
committerAlexander Kriegisch <Alexander@Kriegisch.name>2022-03-23 15:39:14 +0700
commit72e91478f44129d92716807742cd7474265ff5da (patch)
treede6e353e91e9073889d661be5624e3e867c87051 /tests/src/test
parentaf0e70f1615f256a43e798ab7b7fc3d53089f588 (diff)
downloadaspectj-72e91478f44129d92716807742cd7474265ff5da.tar.gz
aspectj-72e91478f44129d92716807742cd7474265ff5da.zip
Add test "asynchronous proceed for nested around-advice chain"
Relates to #128. Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'tests/src/test')
-rw-r--r--tests/src/test/java/org/aspectj/systemtest/ajc198/Bugs198Tests.java4
-rw-r--r--tests/src/test/resources/org/aspectj/systemtest/ajc198/ajc198.xml79
2 files changed, 83 insertions, 0 deletions
diff --git a/tests/src/test/java/org/aspectj/systemtest/ajc198/Bugs198Tests.java b/tests/src/test/java/org/aspectj/systemtest/ajc198/Bugs198Tests.java
index 7982ec630..ac151b127 100644
--- a/tests/src/test/java/org/aspectj/systemtest/ajc198/Bugs198Tests.java
+++ b/tests/src/test/java/org/aspectj/systemtest/ajc198/Bugs198Tests.java
@@ -48,6 +48,10 @@ public class Bugs198Tests extends XMLBasedAjcTestCase {
}
}
+ public void testAsyncProceedNestedAroundAdvice_gh128() {
+ runTest("asynchronous proceed for nested around-advice chain");
+ }
+
public static Test suite() {
return XMLBasedAjcTestCase.loadSuite(Bugs198Tests.class);
}
diff --git a/tests/src/test/resources/org/aspectj/systemtest/ajc198/ajc198.xml b/tests/src/test/resources/org/aspectj/systemtest/ajc198/ajc198.xml
index 0eb413baa..aadf36f92 100644
--- a/tests/src/test/resources/org/aspectj/systemtest/ajc198/ajc198.xml
+++ b/tests/src/test/resources/org/aspectj/systemtest/ajc198/ajc198.xml
@@ -167,4 +167,83 @@
</run>
</ajc-test>
+ <ajc-test dir="bugs198/github_128" title="asynchronous proceed for nested around-advice chain">
+ <compile files="Application.java MarkerA.java MarkerAAspect.aj MarkerB.java MarkerBAspect.aj" options="-1.8" />
+ <run class="Application" options="1,1">
+ <stdout ordered="no">
+ <line text=">> Outer intercept"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text="&lt;&lt; Outer intercept"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ </stdout>
+ </run>
+ <run class="Application" options="2,1">
+ <stdout ordered="no">
+ <line text=">> Outer intercept"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text="&lt;&lt; Outer intercept"/>
+ </stdout>
+ </run>
+ <run class="Application" options="1,2">
+ <stdout ordered="no">
+ <line text=">> Outer intercept"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text="&lt;&lt; Outer intercept"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ </stdout>
+ </run>
+ <run class="Application" options="2,2">
+ <stdout ordered="no">
+ <line text=">> Outer intercept"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text="&lt;&lt; Outer intercept"/>
+ </stdout>
+ </run>
+ </ajc-test>
+
</suite>