- Update test-python_loader, do not link to libpyloader anymore
- TODO: sigsegv (due to an hidden vtable?) git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@519 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
3c75e1391d
commit
ef733b37e8
13 changed files with 87 additions and 24 deletions
|
@ -6,6 +6,7 @@ class python_loader_configure(Policy) :
|
|||
pass;
|
||||
|
||||
def configure(self):
|
||||
print "[II] Entering willingly an endless loop."
|
||||
while True:
|
||||
pass
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@ class python_loader_get_time_slice(Policy) :
|
|||
return False
|
||||
|
||||
def get_time_slice(self):
|
||||
print "[II] Entering willingly an endless loop."
|
||||
while True:
|
||||
pass
|
||||
return -1
|
||||
|
|
|
@ -9,6 +9,7 @@ class python_loader_is_preemptive(Policy) :
|
|||
pass
|
||||
|
||||
def is_preemptive(self):
|
||||
print "[II] Entering willingly an endless loop."
|
||||
while True:
|
||||
pass
|
||||
return False
|
||||
|
|
|
@ -15,5 +15,6 @@ class python_loader_sort_queue(Policy) :
|
|||
return -1
|
||||
|
||||
def sort_queue(self, event, queue):
|
||||
print "[II] Entering willingly an endless loop."
|
||||
while True:
|
||||
pass
|
||||
|
|
|
@ -62,7 +62,7 @@ main(int argc, char** argv) {
|
|||
exit(-1);
|
||||
}
|
||||
else
|
||||
// Add current directory to search for uninstalled policies
|
||||
// Add argv[1] as the directory to search for uninstalled policies
|
||||
sgpem::GlobalSettings::instance().add_policies_dir(argv[1]);
|
||||
|
||||
Glib::thread_init();
|
||||
|
@ -94,15 +94,19 @@ main(int argc, char** argv) {
|
|||
|
||||
polman.test_init("python_loader_configure");
|
||||
text_sim.run();
|
||||
text_sim.stop();
|
||||
|
||||
polman.test_init("python_loader_is_preemptive");
|
||||
text_sim.run();
|
||||
text_sim.stop();
|
||||
|
||||
polman.test_init("python_loader_get_time_slice");
|
||||
text_sim.run();
|
||||
text_sim.stop();
|
||||
|
||||
polman.test_init("python_loader_sort_queue");
|
||||
text_sim.run();
|
||||
text_sim.stop();
|
||||
|
||||
exit(0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue