GNOME Bugzilla – Bug 670218
Do not fail unit test due to gdb abbreviating strings
Last modified: 2012-02-19 00:23:20 UTC
gdb by default will only print strings up to 200 characters. After that it abbreviates them. This affects the run-assert-msg-test.sh script if the path to the glib installation is too long (in our case it was 133 characters, 132 would still have worked...) By having gdb execute "set print elements 0" before printing the assert string, the limit on maximum number of characters to print is set to unlimited. I tested this with glib 2.28.8 but as the run-assert-msg-test.sh script has looked more or less the same since its introduction this problem should be present in all versions of glib.
Created attachment 207775 [details] [review] Allow gdb to print unlimited strings
Review of attachment 207775 [details] [review]: Sure.
Do you have commit access, Peter?
Not that I know...
Will it be backported to 2.28 (the version we use) and 2.30 "automatically", or do I have to poke someone for that to happen?
(In reply to comment #5) > Will it be backported to 2.28 (the version we use) and 2.30 "automatically", or > do I have to poke someone for that to happen? I'm not aware of a documented process, but I've just gone ahead and pushed it to glib-2-28 and glib-2-30.