[tracker/tracker-0.16] SCHED_IDLE is only available on Linux.



commit 953b5f5595eda05352177aab7ab089d9aac51219
Author: Antoine Jacoutot <ajacoutot gnome org>
Date:   Wed Apr 10 17:16:28 2013 +0200

    SCHED_IDLE is only available on Linux.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=697728

 tests/libtracker-common/tracker-sched-test.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/libtracker-common/tracker-sched-test.c b/tests/libtracker-common/tracker-sched-test.c
index 117be8e..74e0571 100644
--- a/tests/libtracker-common/tracker-sched-test.c
+++ b/tests/libtracker-common/tracker-sched-test.c
@@ -46,7 +46,9 @@ test_sched_set_and_get (void)
 {
         g_assert (scheduler_is (SCHED_OTHER));
         g_assert (tracker_sched_idle ());
+#ifdef __linux__
         g_assert (scheduler_is (SCHED_IDLE));
+#endif
 }
 
 


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