From 8c2434f01a60865e22c579c4092c3588827e883b Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 17 Mar 2012 23:43:52 -0400 Subject: [PATCH] Make inf testcase more forgiving printf may produce "infinity" instead of "inf". https://bugzilla.gnome.org/show_bug.cgi?id=668973 --- glib/tests/gvariant.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/tests/gvariant.c b/glib/tests/gvariant.c index c328aa806..7f7d56cf2 100644 --- a/glib/tests/gvariant.c +++ b/glib/tests/gvariant.c @@ -3730,7 +3730,7 @@ test_parses (void) GError *error = NULL; value = g_variant_parse (NULL, tests[i], NULL, NULL, &error); printed = g_variant_print (value, FALSE); - g_assert_cmpstr (tests[i], ==, printed); + g_assert (g_str_has_prefix (printed, tests[i])); g_free (printed); g_variant_unref (value); }