[tracker] tests: Fix compile warning in tracker-file-notifier-test
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tests: Fix compile warning in tracker-file-notifier-test
- Date: Sat, 4 Feb 2012 14:22:55 +0000 (UTC)
commit 2363b37f53562f96350c874126810b1a9df51afc
Author: Sam Thursfield <sam thursfield codethink co uk>
Date: Sat Feb 4 14:20:40 2012 +0000
tests: Fix compile warning in tracker-file-notifier-test
Fixes GB#667786.
.../libtracker-miner/tracker-file-notifier-test.c | 5 ++++-
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 7af2318..7f04cfd 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++) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]