[tracker] tests: Fix compiler warnings



commit 5ff52ebcabb63aa6651d14b4cfd75e9a4cf9831e
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Aug 31 22:43:31 2017 +0200

    tests: Fix compiler warnings
    
    Remove an unused variable, and fix several implicit .begin() calls.

 tests/functional-tests/ipc/test-busy-handling.vala |    4 ++--
 .../ipc/test-class-signal-performance-batch.vala   |    6 +++---
 .../ipc/test-class-signal-performance.vala         |    2 +-
 tests/functional-tests/ipc/test-class-signal.vala  |    4 ++--
 .../ipc/test-insert-or-replace.vala                |    2 +-
 tests/functional-tests/ipc/test-shared-query.vala  |    2 +-
 tests/functional-tests/ipc/test-shared-update.vala |    2 +-
 tests/libtracker-miner/empty-gobject.c             |    2 --
 8 files changed, 11 insertions(+), 13 deletions(-)
---
diff --git a/tests/functional-tests/ipc/test-busy-handling.vala 
b/tests/functional-tests/ipc/test-busy-handling.vala
index 874bde4..42297e1 100644
--- a/tests/functional-tests/ipc/test-busy-handling.vala
+++ b/tests/functional-tests/ipc/test-busy-handling.vala
@@ -126,14 +126,14 @@ public class TestApp {
 
                if (ready) {
                        print ("Test 2: query launches now\n");
-                       jumper_async ();
+                       jumper_async.begin ();
                }
 
                return !ready;
        }
 
        bool in_mainloop () {
-               do_async_query_tests ();
+               do_async_query_tests.begin ();
 
                print ("Test 2: Wait for the status signal to indicate readyness\n");
                users++;
diff --git a/tests/functional-tests/ipc/test-class-signal-performance-batch.vala 
b/tests/functional-tests/ipc/test-class-signal-performance-batch.vala
index 5d77d55..7c8d9b6 100644
--- a/tests/functional-tests/ipc/test-class-signal-performance-batch.vala
+++ b/tests/functional-tests/ipc/test-class-signal-performance-batch.vala
@@ -80,7 +80,7 @@ public class TestApp {
                int i;
                for (i = 0; i <= max_signals; i++) {
                        string upqry = "DELETE { <%d> a rdfs:Resource }".printf(i);
-                       resources_object.sparql_update_async (upqry);
+                       resources_object.sparql_update_async.begin (upqry);
                }
 
                t.start();
@@ -88,9 +88,9 @@ public class TestApp {
                        string upqry = "INSERT { <%d> a nmm:MusicPiece ; nie:title '%s %d' }".printf(i, 
title_data, i);
 
                        if (i == max_signals / 2) {
-                               resources_object.sparql_update_async (upqry);
+                               resources_object.sparql_update_async.begin (upqry);
                        } else {
-                               resources_object.batch_sparql_update_async (upqry);
+                               resources_object.batch_sparql_update_async.begin (upqry);
                        }
                }
        }
diff --git a/tests/functional-tests/ipc/test-class-signal-performance.vala 
b/tests/functional-tests/ipc/test-class-signal-performance.vala
index 35e9307..26c25ab 100644
--- a/tests/functional-tests/ipc/test-class-signal-performance.vala
+++ b/tests/functional-tests/ipc/test-class-signal-performance.vala
@@ -135,7 +135,7 @@ public class TestApp {
                t.start();
                for (i = 0; i <= max_signals; i++) {
                        string upqry = "INSERT { <%d> a nmm:MusicPiece ; nie:title '%s %d' }".printf(i, 
title_data, i);
-                       resources_object.sparql_update_async (upqry);
+                       resources_object.sparql_update_async.begin (upqry);
                }
        }
 
diff --git a/tests/functional-tests/ipc/test-class-signal.vala 
b/tests/functional-tests/ipc/test-class-signal.vala
index 34749cd..0cc61af 100644
--- a/tests/functional-tests/ipc/test-class-signal.vala
+++ b/tests/functional-tests/ipc/test-class-signal.vala
@@ -140,7 +140,7 @@ public class TestApp {
                string dels_qry = build_title_query (class_name, deletes).str;
                string ins_qry = build_title_query (class_name, deletes).str;
 
-               on_graph_updated_received_async (dels_qry, ins_qry);
+               on_graph_updated_received_async.begin (dels_qry, ins_qry);
        }
 
        private void insert_data () {
@@ -149,7 +149,7 @@ public class TestApp {
                for (i = 0; i <= max_signals; i++) {
                        string upqry = "DELETE { <%d> a rdfs:Resource } INSERT { <%d> a nmm:MusicPiece ; 
nie:title '%s %d' }".printf(i, i, title_data, i);
 
-                       resources_object.sparql_update_async (upqry);
+                       resources_object.sparql_update_async.begin (upqry);
 
                        // Once the FD passing bug is fixed (running out of FDs), replace
                        // above with this:
diff --git a/tests/functional-tests/ipc/test-insert-or-replace.vala 
b/tests/functional-tests/ipc/test-insert-or-replace.vala
index 6def3bc..718dfc8 100644
--- a/tests/functional-tests/ipc/test-insert-or-replace.vala
+++ b/tests/functional-tests/ipc/test-insert-or-replace.vala
@@ -125,7 +125,7 @@ int main (string[] args) {
                c = Connection.get ();
 
                if (args.length == 3) {
-                       y = args[2].to_int();
+                       y = int.parse (args[2]);
                }
 
                if (args.length == 1 || args[1] == "replace") {
diff --git a/tests/functional-tests/ipc/test-shared-query.vala 
b/tests/functional-tests/ipc/test-shared-query.vala
index 3fb930c..133fec8 100644
--- a/tests/functional-tests/ipc/test-shared-query.vala
+++ b/tests/functional-tests/ipc/test-shared-query.vala
@@ -122,7 +122,7 @@ public class TestApp : GLib.Object {
        bool in_mainloop () {
 
                do_sync_tests ();
-               do_async_tests ();
+               do_async_tests.begin ();
 
                return false;
        }
diff --git a/tests/functional-tests/ipc/test-shared-update.vala 
b/tests/functional-tests/ipc/test-shared-update.vala
index 406ae43..f2a54a7 100644
--- a/tests/functional-tests/ipc/test-shared-update.vala
+++ b/tests/functional-tests/ipc/test-shared-update.vala
@@ -120,7 +120,7 @@ public class TestApp : GLib.Object {
        bool in_mainloop () {
 
                do_sync_tests ();
-               do_async_tests ();
+               do_async_tests.begin ();
 
                return false;
        }
diff --git a/tests/libtracker-miner/empty-gobject.c b/tests/libtracker-miner/empty-gobject.c
index 4c0bbad..3448c9e 100644
--- a/tests/libtracker-miner/empty-gobject.c
+++ b/tests/libtracker-miner/empty-gobject.c
@@ -92,8 +92,6 @@ static void empty_object_instance_init (EmptyObject * self) {
 
 
 static void empty_object_finalize (GObject* obj) {
-       EmptyObject * self;
-       self = EMPTY_OBJECT (obj);
        G_OBJECT_CLASS (empty_object_parent_class)->finalize (obj);
 }
 


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