[glib] testutils: Remove unused variable



commit 62e68ceec8cfad06fffb00fd23ccaad3fc0f476e
Author: Benjamin Otte <otte redhat com>
Date:   Mon Apr 18 14:37:24 2011 +0200

    testutils: Remove unused variable

 glib/gtestutils.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/glib/gtestutils.c b/glib/gtestutils.c
index 7488ec3..9ddad88 100644
--- a/glib/gtestutils.c
+++ b/glib/gtestutils.c
@@ -1202,7 +1202,7 @@ static int
 g_test_run_suite_internal (GTestSuite *suite,
                            const char *path)
 {
-  guint n_bad = 0, n_good = 0, bad_suite = 0, l;
+  guint n_bad = 0, bad_suite = 0, l;
   gchar *rest, *old_name = test_run_name;
   GSList *slist, *reversed;
   g_return_val_if_fail (suite != NULL, -1);
@@ -1219,7 +1219,6 @@ g_test_run_suite_internal (GTestSuite *suite,
       guint n = l ? strlen (tc->name) : 0;
       if (l == n && strncmp (path, tc->name, n) == 0)
         {
-          n_good++;
           if (!test_case_run (tc))
             n_bad++;
         }



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