[tracker] tests: Fix failure in tracker-sched-test under jhbuild



commit adb948976ce36232f2d6c9137d6dd0e513326598
Author: Sam Thursfield <sam thursfield codethink co uk>
Date:   Mon Nov 25 15:52:06 2013 +0000

    tests: Fix failure in tracker-sched-test under jhbuild
    
    jhbuild defaults to running under 'SCHED_IDLE'. The test asserts that
    the test is initially using 'SCHED_OTHER' -- this is a bad idea, we
    shouldn't be making assertions about the environment in which the user
    is running the tests.

 tests/libtracker-common/tracker-sched-test.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/tests/libtracker-common/tracker-sched-test.c b/tests/libtracker-common/tracker-sched-test.c
index 74e0571..48bb21d 100644
--- a/tests/libtracker-common/tracker-sched-test.c
+++ b/tests/libtracker-common/tracker-sched-test.c
@@ -44,7 +44,6 @@ scheduler_is (gint scheduler)
 static void
 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));


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