summaryrefslogtreecommitdiff
path: root/tests/test-shape.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-25 17:31:56 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-25 17:31:56 -0400
commit37c52ee25bf43fc475f2d81c12b9dd45220418df (patch)
tree45482e6289740de1bc81feaec5997c6d8a8870f0 /tests/test-shape.c
parentc7058b8e34a00efb2abd27180ff3043d817a79e0 (diff)
downloadpango-37c52ee25bf43fc475f2d81c12b9dd45220418df.tar.gz
tests: Make test-shape work like the others
There was some extra code here that was getting in the way of using all the dumper tests on the same input files. Get rid of it.
Diffstat (limited to 'tests/test-shape.c')
-rw-r--r--tests/test-shape.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/test-shape.c b/tests/test-shape.c
index 152acd26..c43e5a06 100644
--- a/tests/test-shape.c
+++ b/tests/test-shape.c
@@ -137,7 +137,7 @@ test_file (const gchar *filename, GString *string)
PangoAttrList *shape_attrs;
GList *items, *l;
GString *s1, *s2, *s3, *s4, *s5, *s6, *s7;
- char *p, *p1;
+ char *p1;
const char *sep = "";
if (!g_file_get_contents (filename, &contents, &length, &error))
@@ -153,11 +153,6 @@ test_file (const gchar *filename, GString *string)
while (test[0] == '#')
test = strchr (test, '\n') + 1;
- p = strchr (test, '\n');
- *p = '\0';
-
- test = p + 1;
-
if (!pango_parse_markup (test, -1, 0, &attrs, &text, NULL, &error))
{
fprintf (stderr, "%s\n", error->message);