projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57878d6
)
Make inf testcase more forgiving
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 18 Mar 2012 03:43:52 +0000
(23:43 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 18 Mar 2012 03:43:52 +0000
(23:43 -0400)
printf may produce "infinity" instead of "inf".
https://bugzilla.gnome.org/show_bug.cgi?id=668973
glib/tests/gvariant.c
patch
|
blob
|
history
diff --git
a/glib/tests/gvariant.c
b/glib/tests/gvariant.c
index
c328aa8
..
7f7d56c
100644
(file)
--- 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);
}