Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 858656 - dev-java/gson: has JAVA_TEST_EXCLUDES for unresolved test failures
Summary: dev-java/gson: has JAVA_TEST_EXCLUDES for unresolved test failures
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Java-test-failures
  Show dependency tree
 
Reported: 2022-07-17 21:30 UTC by Volkmar W. Pogatzki
Modified: 2022-07-17 21:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Volkmar W. Pogatzki 2022-07-17 21:30:25 UTC
As of dev-java/gson-2.9.0-r2

JAVA_TEST_EXCLUDES=(
    # requires the test class to be obfuscated using proguard which we do not have atm
    "com.google.gson.functional.EnumWithObfuscatedTest"
    # FAILURES!!!
    # Tests run: 1090,  Failures: 3
    # testComGoogleGsonAnnotationsPackage(com.google.gson.regression.OSGiTest)
    # junit.framework.AssertionFailedError: Cannot find com.google.gson OSGi bundle manifest
    "com.google.gson.regression.OSGiTest"
    # testSerializeInternalImplementationObject(com.google.gson.functional.ReflectionAccessTest)
    # java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $
    "com.google.gson.functional.ReflectionAccessTest"
)

src_prepare() {
    default
    sed -e "s/\${project.version}/${PV}/g" \
        -i src/main/java-templates/com/google/gson/internal/GsonBuildConfig.java \
            || die "Failed to set version"

    local vm_version="$(java-config -g PROVIDES_VERSION)"
    if ver_test "${vm_version}" -ge "17" ; then
        JAVA_TEST_EXCLUDES+=( "com.google.gson.internal.bind.DefaultDateTypeAdapterTest" )
    fi
}