Source: junit4 Version: 4.13.2-3 Severity: important Tags: ftbfs User: debian-j...@lists.debian.org Usertags: default-java21 X-Debbugs-Cc: vladimir.pe...@canonical.com
Dear Maintainers, The package junit4 ftbfs with default Java 21. The relevant part of the build log: --------------- [ERROR] Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.012 s <<< FAILURE! - in org.junit.tests.running.core.CommandLineTest [ERROR] runATest(org.junit.tests.running.core.CommandLineTest) Time elapsed: 0.011 s <<< ERROR! java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release at org.junit.tests.running.core.CommandLineTest.runATest(CommandLineTest.java:41) [INFO] Running org.junit.tests.running.core.JUnitCoreReturnsCorrectExitCodeTest [ERROR] Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.003 s <<< FAILURE! - in org.junit.tests.running.core.JUnitCoreReturnsCorrectExitCodeTest [ERROR] failureCausesExitCodeOf1(org.junit.tests.running.core.JUnitCoreReturnsCorrectExitCodeTest) Time elapsed: 0 s <<< ERROR! java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release at org.junit.tests.running.core.JUnitCoreReturnsCorrectExitCodeTest.runClass(JUnitCoreReturnsCorrectExitCodeTest.java:40) at org.junit.tests.running.core.JUnitCoreReturnsCorrectExitCodeTest.failureCausesExitCodeOf1(JUnitCoreReturnsCorrectExitCodeTest.java:20) [ERROR] successCausesExitCodeOf0(org.junit.tests.running.core.JUnitCoreReturnsCorrectExitCodeTest) Time elapsed: 0.001 s <<< ERROR! java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release at org.junit.tests.running.core.JUnitCoreReturnsCorrectExitCodeTest.runClass(JUnitCoreReturnsCorrectExitCodeTest.java:40) at org.junit.tests.running.core.JUnitCoreReturnsCorrectExitCodeTest.successCausesExitCodeOf0(JUnitCoreReturnsCorrectExitCodeTest.java:36) [ERROR] missingClassCausesExitCodeOf1(org.junit.tests.running.core.JUnitCoreReturnsCorrectExitCodeTest) Time elapsed: 0 s <<< ERROR! java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release at org.junit.tests.running.core.JUnitCoreReturnsCorrectExitCodeTest.runClass(JUnitCoreReturnsCorrectExitCodeTest.java:40) at org.junit.tests.running.core.JUnitCoreReturnsCorrectExitCodeTest.missingClassCausesExitCodeOf1(JUnitCoreReturnsCorrectExitCodeTest.java:25) [INFO] Running org.junit.tests.running.core.SystemExitTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.043 s - in org.junit.tests.running.core.SystemExitTest [INFO] Running org.junit.tests.running.methods.AnnotationTest [INFO] Tests run: 30, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 s - in org.junit.tests.running.methods.AnnotationTest [INFO] Running org.junit.tests.running.methods.ExpectedTest [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 s - in org.junit.tests.running.methods.ExpectedTest [INFO] Running org.junit.tests.running.methods.InheritedTestTest [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 s - in org.junit.tests.running.methods.InheritedTestTest [INFO] Running org.junit.tests.running.methods.ParameterizedTestMethodTest [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in org.junit.tests.running.methods.ParameterizedTestMethodTest [INFO] Running org.junit.tests.running.methods.TestMethodTest [INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 s - in org.junit.tests.running.methods.TestMethodTest [INFO] Running org.junit.tests.running.methods.TimeoutTest [WARNING] Tests run: 13, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 0.712 s - in org.junit.tests.running.methods.TimeoutTest [INFO] Running org.junit.samples.ListTest [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.junit.samples.ListTest [INFO] Running org.junit.samples.money.MoneyTest [INFO] Tests run: 23, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 s - in org.junit.samples.money.MoneyTest [INFO] Running org.junit.tests.validation.BadlyFormedClassesTest [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.junit.tests.validation.BadlyFormedClassesTest [INFO] Running org.junit.tests.validation.FailedConstructionTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.junit.tests.validation.FailedConstructionTest [INFO] Running org.junit.tests.validation.ValidationTest [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.junit.tests.validation.ValidationTest [INFO] Running org.junit.validator.AnnotationsValidatorTest [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.junit.validator.AnnotationsValidatorTest [INFO] Running org.junit.validator.AnnotationValidatorFactoryTest [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.junit.validator.AnnotationValidatorFactoryTest [INFO] Running org.junit.validator.PublicClassValidatorTest [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.junit.validator.PublicClassValidatorTest [INFO] Running org.junit.AssumptionViolatedExceptionTest [INFO] Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.02 s - in org.junit.AssumptionViolatedExceptionTest [INFO] Running org.junit.tests.ObjectContractTest [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in org.junit.tests.ObjectContractTest [INFO] [INFO] Results: [INFO] [ERROR] Failures: [ERROR] FailOnTimeoutTest.lookingForStuckThread_threadGroupNotLeaked:207 the 'FailOnTimeoutGroup' thread group should be destroyed after running the test [ERROR] Errors: [ERROR] CommandLineTest.runATest:41 » UnsupportedOperation The Security Manager is dep... [ERROR] JUnitCoreReturnsCorrectExitCodeTest.failureCausesExitCodeOf1:20->runClass:40 » UnsupportedOperation [ERROR] JUnitCoreReturnsCorrectExitCodeTest.missingClassCausesExitCodeOf1:25->runClass:40 » UnsupportedOperation [ERROR] JUnitCoreReturnsCorrectExitCodeTest.successCausesExitCodeOf0:36->runClass:40 » UnsupportedOperation [INFO] [ERROR] Tests run: 1108, Failures: 1, Errors: 4, Skipped: 5 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 10.513 s [INFO] Finished at: 2023-05-04T13:20:07Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.3:test (default-test) on project junit: There are test failures. [ERROR] [ERROR] Please refer to /<<PKGBUILDDIR>>/target/surefire-reports for the individual test results. [ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException --------------- -- System Information: Debian Release: bookworm/sid APT prefers lunar-updates APT policy: (500, 'lunar-updates'), (500, 'lunar-security'), (500, 'lunar'), (100, 'lunar-backports') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.2.0-33-generic (SMP w/32 CPU threads; PREEMPT) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled