Bug 2420908

Summary: Stevia's "test-emoji-db" fails on s390x
Product: [Fedora] Fedora Reporter: Tomi Lähteenmäki <lihis>
Component: steviaAssignee: Tomi Lähteenmäki <lihis>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: dan, lihis
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 485231    
Bug Blocks: 467765    
Attachments:
Description Flags
build.log none

Description Tomi Lähteenmäki 2025-12-10 06:00:01 UTC
Aforementioned tests fails on s390x while passes on other arches.

Reproducible: Always

Steps to Reproduce:
1. Ensure spec does not exclude s390x
2. fedpkg scratch-build --arches s390x --srpm
Actual Results:
"test-emoji-db" test fails

Expected Results:
All tests passes

Comment 1 Tomi Lähteenmäki 2025-12-10 06:00:22 UTC
Created attachment 2118264 [details]
build.log

Comment 2 Dan Horák 2025-12-10 07:55:24 UTC
My guess is that the test is comparing native (big endian on s390x) data with a little endian baseline ...

Comment 3 Tomi Lähteenmäki 2025-12-10 19:52:24 UTC
The failing assert [1] is:

>   g_assert_cmpstrv (found,
>                    ((const char *const[]) {
>                      "\360\237\230\204\357\270\217",
>                      "\360\237\230\201\357\270\217",
>                      "\360\237\231\202\357\270\217",
>                      NULL,
>                    }));

which spits out the actual and expected:

> ERROR:../tests/test-emoji-db.c:21:test_emoji_db_match: assertion failed (found == ((const char *const[]) { "\360\237\230\204\357\270\217", "\360\237\230\201\357\270\217", "\360\237\231\202\357\270\217", NULL, })): first differing element at index 0: "\374\204\275\240\204\200\357\270\217" does not equal


[1] https://gitlab.gnome.org/World/Phosh/stevia/-/blob/v0.51.0/tests/test-emoji-db.c?ref_type=tags#L21