summaryrefslogtreecommitdiff
path: root/tests/libtracker-miner
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2012-02-04 14:20:40 +0000
committerMartyn Russell <martyn@lanedo.com>2012-02-04 14:20:40 +0000
commit2363b37f53562f96350c874126810b1a9df51afc (patch)
tree05c945e04d43473f3a4b8956992e84254d2a2baa /tests/libtracker-miner
parentb4888bb1391d200a1705a453b5e5019a1d673ae4 (diff)
downloadtracker-2363b37f53562f96350c874126810b1a9df51afc.tar.gz
tests: Fix compile warning in tracker-file-notifier-test
Fixes GB#667786.
Diffstat (limited to 'tests/libtracker-miner')
-rw-r--r--tests/libtracker-miner/tracker-file-notifier-test.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/libtracker-miner/tracker-file-notifier-test.c b/tests/libtracker-miner/tracker-file-notifier-test.c
index 7af23183e..7f04cfd1f 100644
--- a/tests/libtracker-miner/tracker-file-notifier-test.c
+++ b/tests/libtracker-miner/tracker-file-notifier-test.c
@@ -340,7 +340,10 @@ test_common_context_expect_results (TestCommonContext *fixture,
}
g_main_loop_run (fixture->main_loop);
- g_source_remove (id);
+
+ if (max_timeout != 0) {
+ g_source_remove (id);
+ }
}
for (i = 0; i < n_results; i++) {