Do not fail unit test due to gdb abbreviating strings
authorPeter Kjellerstedt <pkj@axis.com>
Thu, 16 Feb 2012 11:17:32 +0000 (12:17 +0100)
committerColin Walters <walters@verbum.org>
Fri, 17 Feb 2012 16:59:30 +0000 (11:59 -0500)
commit50efbaf063f77f4e273f87ebf4ab01a1c507e97f
tree29003673eb10a09c2045d32e5c563b738af97442
parent29f3e40e4e8bb382f405ecd1769d37bfd536e24b
Do not fail unit test due to gdb abbreviating strings

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.

Signed-off-by: Peter Kjellerstedt <pkj@axis.com>
https://bugzilla.gnome.org/show_bug.cgi?id=670218
tests/run-assert-msg-test.sh