[gnome-desktop-testing] runner: Check hash table size correctly



commit fb12b64d4929e39d23d9fba869d151a7766ad175
Author: Colin Walters <walters verbum org>
Date:   Sat Jul 13 15:49:53 2013 -0400

    runner: Check hash table size correctly
    
    Damn C allowing me to compare pointers against integers without
    warning.

 src/gnome-desktop-testing-runner.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-desktop-testing-runner.c b/src/gnome-desktop-testing-runner.c
index 7c1fa1f..bf363aa 100755
--- a/src/gnome-desktop-testing-runner.c
+++ b/src/gnome-desktop-testing-runner.c
@@ -415,7 +415,7 @@ reschedule_tests (GCancellable *cancellable)
           /* If our next text is exclusive, wait until any other
            * pending async tests have run.
            */
-          if (app->pending_tests > 0)
+          if (g_hash_table_size (app->pending_tests) > 0)
             break;
           app->running_exclusive_test = TRUE;
         }


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