From 5e40f9a8c1e9edc33effc273e3782eeae4ccf404 Mon Sep 17 00:00:00 2001 From: elvez Date: Fri, 21 Jul 2006 23:41:06 +0000 Subject: [PATCH] - Fixed a problem with test-pyloader, now it starts, but it segfaults in no time git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@790 3ecf2c5c-341e-0410-92b4-d18e462d057c --- plugins/pyloader/src/testsuite/python_loader_configure.py | 5 +++++ .../pyloader/src/testsuite/python_loader_get_time_slice.py | 5 +++++ .../pyloader/src/testsuite/python_loader_is_preemptive.py | 5 +++++ plugins/pyloader/src/testsuite/python_loader_sort_queue.py | 7 +++++++ 4 files changed, 22 insertions(+) diff --git a/plugins/pyloader/src/testsuite/python_loader_configure.py b/plugins/pyloader/src/testsuite/python_loader_configure.py index 826193e..e38a281 100644 --- a/plugins/pyloader/src/testsuite/python_loader_configure.py +++ b/plugins/pyloader/src/testsuite/python_loader_configure.py @@ -16,5 +16,10 @@ class python_loader_configure(Policy) : def get_time_slice(self): return -1 + # FIXME incorrect, but must be implemented to allow + # loading from the policy manager + def wants(self): + return 0 + def sort_queue(self, queue): pass diff --git a/plugins/pyloader/src/testsuite/python_loader_get_time_slice.py b/plugins/pyloader/src/testsuite/python_loader_get_time_slice.py index 2937b63..5ba6ca1 100644 --- a/plugins/pyloader/src/testsuite/python_loader_get_time_slice.py +++ b/plugins/pyloader/src/testsuite/python_loader_get_time_slice.py @@ -17,5 +17,10 @@ class python_loader_get_time_slice(Policy) : pass return -1 + # FIXME incorrect, but must be implemented to allow + # loading from the policy manager + def wants(self): + return 0 + def sort_queue(self, queue): pass diff --git a/plugins/pyloader/src/testsuite/python_loader_is_preemptive.py b/plugins/pyloader/src/testsuite/python_loader_is_preemptive.py index 6e0bb44..995abd9 100644 --- a/plugins/pyloader/src/testsuite/python_loader_is_preemptive.py +++ b/plugins/pyloader/src/testsuite/python_loader_is_preemptive.py @@ -17,5 +17,10 @@ class python_loader_is_preemptive(Policy) : def get_time_slice(self): return -1 + # FIXME incorrect, but must be implemented to allow + # loading from the policy manager + def wants(self): + return 0 + def sort_queue(self, queue): pass diff --git a/plugins/pyloader/src/testsuite/python_loader_sort_queue.py b/plugins/pyloader/src/testsuite/python_loader_sort_queue.py index ff26d0a..f91180f 100644 --- a/plugins/pyloader/src/testsuite/python_loader_sort_queue.py +++ b/plugins/pyloader/src/testsuite/python_loader_sort_queue.py @@ -14,6 +14,13 @@ class python_loader_sort_queue(Policy) : def get_time_slice(self): return -1 + + # FIXME incorrect, but must be implemented to allow + # loading from the policy manager + def wants(self): + return 0 + + def sort_queue(self, queue): print "[II] Entering willingly an endless loop." while True: