Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 820338 - dev-java/gson-2.8.8 fails tests
Summary: dev-java/gson-2.8.8 fails tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Java team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-10-26 10:49 UTC by Agostino Sarubbo
Modified: 2022-01-20 10:20 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,51.34 KB, text/plain)
2021-10-26 10:49 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-10-26 10:49:51 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-java/gson-2.8.8 fails tests.
Discovered on: amd64 (internal ref: ci)

NOTE:
This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html
If you think this is a GCC-11 related issue, please block bug 732706.
Comment 1 Agostino Sarubbo gentoo-dev 2021-10-26 10:49:54 UTC
Created attachment 746784 [details]
build.log

build log and emerge --info
Comment 2 Miroslav Šulc gentoo-dev 2021-10-26 14:17:08 UTC
here's the failing test:

1) testFailedGetArrayValues(com.google.gson.JsonArrayTest)
junit.framework.ComparisonFailure: Expected an exception message expected:<[Index -1 out of bounds for length ]1> but was:<[-]1>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at com.google.gson.JsonArrayTest.testFailedGetArrayValues(JsonArrayTest.java:116)


interestingly enough, this did not occur in my case while bumping it. will need more investigation.
Comment 3 Larry the Git Cow gentoo-dev 2022-01-20 10:20:48 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58a7960bc20f87e27f6c8865f64d88a5b6eaa07f

commit 58a7960bc20f87e27f6c8865f64d88a5b6eaa07f
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2022-01-19 12:25:05 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2022-01-20 10:20:46 +0000

    dev-java/gson: exclude 1 test if vm_version="1.8"
    
    Closes: https://bugs.gentoo.org/820338
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Closes: https://github.com/gentoo/gentoo/pull/23869
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 dev-java/gson/gson-2.8.8.ebuild | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)