mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-10 11:14:05 +02:00
Make inf testcase more forgiving
printf may produce "infinity" instead of "inf". https://bugzilla.gnome.org/show_bug.cgi?id=668973
This commit is contained in:
@@ -3730,7 +3730,7 @@ test_parses (void)
|
|||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
value = g_variant_parse (NULL, tests[i], NULL, NULL, &error);
|
value = g_variant_parse (NULL, tests[i], NULL, NULL, &error);
|
||||||
printed = g_variant_print (value, FALSE);
|
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_free (printed);
|
||||||
g_variant_unref (value);
|
g_variant_unref (value);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user