GNOME Bugzilla – Bug 525550
GTK+ 2.13.0 GtkCurve test fails
Last modified: 2008-11-12 15:15:46 UTC
Please describe the problem: bash-3.2$ tests/objecttests -p /properties/GtkCurve /properties/GtkCurve: Gtk-CRITICAL **: gtk_widget_set_size_request: assertion `width >= -1' failed aborting... Aborted Steps to reproduce: 1. ./configure 2. make 3. make check Actual results: Expected results: Does this happen every time? Yes Other information: glib-2.16.1, pango-1.20.0, cairo-1.5.14, atk-1.22.0
Still happening with gtk+-2.14.3 (glib-2.18.1, cairo-1.6.4, pango-1.20.0)
Created attachment 120031 [details] [review] Negate large negativ and add test I see the failure, too. The curve basically ends up being extremely large, yet it has a negative width. This patch simply negates the width or height espectively in case it is negative and makes sure it fits in the screen. Not sure if that's the right fix. The patch also adds a "curve" test to testgtk, which is a curve with four spin buttons to play around with.
I suggest simply blacklisting GtkCurve in the tests. It is not as if we're going to fix GtkCurve.
Created attachment 122494 [details] [review] Ignore GtkCurve when testing This patch allows "" for the property to mean "skip entirely" and blacklists GtkCurve this way. Plus three missing spaces before opening brackets while I was at it.
Looks ok to me.
2008-11-12 Christian Dywan <christian@imendio.com> Bug 525550 – GTK+ 2.13.0 GtkCurve test fails * gtk/tests/object.c (list_ignore_properties), (object_test_property), (main): Ignore GtkCurve when testing