GNOME Bugzilla – Bug 650483
Test failure on several architectures
Last modified: 2012-03-13 22:08:44 UTC
json-glib FTBFS on several architectures due to /gvariant/from-json/byte test. It fails with: ERROR:gvariant-test.c:193:test_json_to_gvariant: assertion failed (test_case->variant_data == variant_data): ("(byte 0xff,)" == "(byte 0x00,)") All the logs can be found at: https://buildd.debian.org/status/package.php?p=json-glib Details about the different architectures in debian: http://wiki.debian.org/ArchitectureSpecificsMemo
I don't have any of the architectures to test on, so any patches are welcome. the failures seem to be concentrated in the GVariant code, so it could even be a GVariant issue.
Any test code to see if the issue is coming from json-glib or the GVariant code? I can have access to some of these architectures
Hi, Yes the issue seems in json_to_gvariant_recurse and related to GVariant. g_variant_new ("y", (gint64) 255); doesn't seems to work the same on all architectures... On S390 it gives byte 0x00 while on amd64 it gives byte 0xff Is this a GLib or a json-glib issue? Cheers
if you can create a GVariant-to-string-only test case that fails, then it's a GVariant portability bug. if a GVariant-to-string test case works then it's a bug in JSON-GLib.
Created attachment 191391 [details] [review] Fix GVariant creation This fix casting issue when creating GVariant. The tests now succeed at least on S390
Review of attachment 191391 [details] [review]: looks good to me.
attachment 191391 [details] [review] pushed to master. again, thanks for the detective work and for the patch.
[Fixing Default QA assignee for json-glib - see 613232#c1. Sorry for bugmail noise.]