summaryrefslogtreecommitdiff
path: root/tests/markup-test.c
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2002-05-18 22:06:54 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2002-05-18 22:06:54 +0000
commit60f59976d909a2d77a47ef09140ffcdac2187d92 (patch)
treeb98dd59a6dcfddf8f6fed79b48503228c710419a /tests/markup-test.c
parented8f19b4c649b79f6eea12ed60ffd6c0cfb8c0e8 (diff)
New testcases.
2002-05-18 Matthias Clasen <maclas@gmx.de> * tests/markups/fail-36.gmarkup: * tests/markups/fail-35.gmarkup: * tests/markups/valid-8.gmarkup: * tests/markups/valid-7.gmarkup: * tests/markups/valid-6.gmarkup: * tests/markups/valid-5.gmarkup: New testcases. * tests/markup-test.c (passthrough_handler): (text_handler): Don't ignore the text_len parameter. * glib/gmarkup.c (find_current_text_end): Don't hang on embedded nuls. (#81977) (g_markup_parse_context_parse): Fix passthrough handling to correctly skip processing instructions, comments, doctype declarations and CDATA marked sections. (#81977)
Diffstat (limited to 'tests/markup-test.c')
-rw-r--r--tests/markup-test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/markup-test.c b/tests/markup-test.c
index 53b86c2cd..c174066ec 100644
--- a/tests/markup-test.c
+++ b/tests/markup-test.c
@@ -61,7 +61,7 @@ text_handler (GMarkupParseContext *context,
GError **error)
{
indent (0);
- printf ("TEXT '%s'\n", text);
+ printf ("TEXT '%.*s'\n", (int)text_len, text);
}
@@ -74,7 +74,7 @@ passthrough_handler (GMarkupParseContext *context,
{
indent (0);
- printf ("PASS '%s'\n", passthrough_text);
+ printf ("PASS '%.*s'\n", (int)text_len, passthrough_text);
}
static void
@@ -200,3 +200,4 @@ main (int argc,
return 1;
}
}
+