[pango/matthiasc/for-main: 4/5] tests: Make test-shape work like the others




commit 37c52ee25bf43fc475f2d81c12b9dd45220418df
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Aug 25 17:31:56 2021 -0400

    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.

 tests/test-shape.c | 7 +------
 1 file changed, 1 insertion(+), 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]