commit: 9b09e62a3d7e12487bc9af0380e4bcf3b9c628b6 Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net> AuthorDate: Sun Nov 14 10:25:45 2021 +0000 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> CommitDate: Tue Nov 16 11:38:29 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b09e62a
dev-java/pdfbox: additional TEST_EXCLUDES for jdk-17 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/21564 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> dev-java/pdfbox/pdfbox-2.0.24.ebuild | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dev-java/pdfbox/pdfbox-2.0.24.ebuild b/dev-java/pdfbox/pdfbox-2.0.24.ebuild index cfaf146b4ae5..ea6072119ab0 100644 --- a/dev-java/pdfbox/pdfbox-2.0.24.ebuild +++ b/dev-java/pdfbox/pdfbox-2.0.24.ebuild @@ -196,6 +196,17 @@ src_test() { JAVA_TEST_SRC_DIR="pdfbox/src/test/java" JAVA_TEST_RESOURCE_DIRS="pdfbox/src/test/resources" + # There was 1 failure + # 1) testIsEmbeddingPermittedMultipleVersions(org.apache.pdfbox.pdmodel.font.TestFontEmbedding) + # java.lang.ExceptionInInitializerError + # Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @4dc690f9 + # FAILURES!!! + # Tests run: 586, Failures: 1 + local vm_version="$(java-config -g PROVIDES_VERSION)" + if [[ "${vm_version}" == "17" ]] ; then + JAVA_TEST_EXCLUDES+=( "org.apache.pdfbox.pdmodel.font.TestFontEmbedding" ) + fi + # tests failed with S="${WORKDIR}/${P}" find pdfbox/src/test/ -type f -exec sed -i 's:src/test/resources:pdfbox/src/test/resources:' {} + || die