From 89597d34eec7cab349a1c00a5a2bd85795b9a8f4 Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Sun, 4 Jun 2023 12:52:54 +0200 Subject: [PATCH] Fix XML config for Bugs1919Tests.test_GitHub_214 The test started breaking on GitHub, but ran fine locally, which implied some kind of classpath ordering issue. As it turned out, for XML tests all JARs found in the sandbox directory are added to the classpath automatically. So if we do not want them on the classpath, we need to delete or rename them before running. In this case, however, it was enough to make sure the classpath order is correct, so that the duplicate 'Application' class is found in the woven version, not in the unwoven one by chance. We therefore need to use the correct syntax, 1. separating classpath entries by comma, not space, 2. prepending '$sandbox/' to the JAR name. Now the test reliably does what it should have done from the start: run the woven code. Until now, the output assertions were adjusted to the weird result of no aspect logs being present on the console, which was wrong right from the start. Signed-off-by: Alexander Kriegisch --- .../resources/org/aspectj/systemtest/ajc1919/ajc1919.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/src/test/resources/org/aspectj/systemtest/ajc1919/ajc1919.xml b/tests/src/test/resources/org/aspectj/systemtest/ajc1919/ajc1919.xml index 5ff07be04..d31b35aa1 100644 --- a/tests/src/test/resources/org/aspectj/systemtest/ajc1919/ajc1919.xml +++ b/tests/src/test/resources/org/aspectj/systemtest/ajc1919/ajc1919.xml @@ -370,7 +370,7 @@ - + @@ -378,8 +378,10 @@ - + + + -- 2.39.5