summaryrefslogtreecommitdiff
path: root/tests/libtracker-common
diff options
context:
space:
mode:
authorSam Thursfield <sam@afuera.me.uk>2020-01-09 11:35:19 +0100
committerSam Thursfield <sam@afuera.me.uk>2020-01-09 11:43:48 +0100
commit209c780b4ac0433368a9a1dd1095d3487b0e86e2 (patch)
tree1b797313732fe207c5666ad098d9beb736133a2b /tests/libtracker-common
parent51535325b1a323111919aab9a7b65ec159419a66 (diff)
downloadtracker-209c780b4ac0433368a9a1dd1095d3487b0e86e2.tar.gz
libtracker-common: Remove tracker_sched_idle() code
This is still used in tracker-miners.git, but it's no longer used in tracker.git. See: https://gitlab.gnome.org/GNOME/tracker/issues/170
Diffstat (limited to 'tests/libtracker-common')
-rw-r--r--tests/libtracker-common/meson.build1
-rw-r--r--tests/libtracker-common/tracker-sched-test.c63
2 files changed, 0 insertions, 64 deletions
diff --git a/tests/libtracker-common/meson.build b/tests/libtracker-common/meson.build
index f6618f930..c1e94f879 100644
--- a/tests/libtracker-common/meson.build
+++ b/tests/libtracker-common/meson.build
@@ -2,7 +2,6 @@ libtracker_common_tests = [
'date-time',
'dbus',
'file-utils',
- 'sched',
'type-utils',
'utils',
]
diff --git a/tests/libtracker-common/tracker-sched-test.c b/tests/libtracker-common/tracker-sched-test.c
deleted file mode 100644
index 48bb21d8b..000000000
--- a/tests/libtracker-common/tracker-sched-test.c
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Copyright (C) 2011, Nokia <ivan.frade@nokia.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- */
-#include "config.h"
-
-#include <glib.h>
-#include <glib-object.h>
-#include <libtracker-common/tracker-sched.h>
-
-#ifdef __linux__
-#include <linux/sched.h>
-#endif
-
-
-#include <sched.h>
-#include <errno.h>
-
-
-static gboolean
-scheduler_is (gint scheduler)
-{
-#ifdef __linux__
- return (sched_getscheduler (0) == scheduler);
-#else
- return TRUE;
-#endif
-}
-
-static void
-test_sched_set_and_get (void)
-{
- g_assert (tracker_sched_idle ());
-#ifdef __linux__
- g_assert (scheduler_is (SCHED_IDLE));
-#endif
-}
-
-
-gint
-main (gint argc, gchar **argv)
-{
- g_test_init (&argc, &argv, NULL);
-
- g_test_add_func ("/libtracker-common/sched/set_and_get",
- test_sched_set_and_get);
-
- return g_test_run ();
-}