projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c39464
)
tests: printf: add unit test for %%
author
Tim-Philipp Müller
<tim@centricular.com>
Fri, 24 Apr 2015 14:19:26 +0000
(15:19 +0100)
committer
Tim-Philipp Müller
<tim@centricular.com>
Fri, 24 Apr 2015 14:19:26 +0000
(15:19 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=748414
tests/check/gst/gstprintf.c
patch
|
blob
|
history
diff --git
a/tests/check/gst/gstprintf.c
b/tests/check/gst/gstprintf.c
index 724de3558f4e58d80b8542624703145049a1e9f8..7fca6490ccadedca07533821884d96415a15235e 100644
(file)
--- a/
tests/check/gst/gstprintf.c
+++ b/
tests/check/gst/gstprintf.c
@@
-118,6
+118,18
@@
GST_START_TEST (printf_I32_I64)
GST_END_TEST;
+GST_START_TEST (printf_percent)
+{
+ gchar *str;
+
+ /* standard int/uint */
+ str = test_printf ("%u%%", 99);
+ fail_unless_equals_string (str, "99%");
+ g_free (str);
+}
+
+GST_END_TEST;
+
static Suite *
gst_printf_suite (void)
{
@@
-128,6
+140,7
@@
gst_printf_suite (void)
suite_add_tcase (s, tc_chain);
tcase_add_test (tc_chain, printf_I32_I64);
+ tcase_add_test (tc_chain, printf_percent);
return s;
}