- Move compiled test to the ``testsuite'' subdir

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@415 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-02-23 22:02:59 +00:00
parent dfe1593b44
commit c91a86a9ca
2 changed files with 5 additions and 10 deletions

View File

@ -315,10 +315,10 @@ pyc_PYTHON = \
# DEJATOOL = src/testsuite/example-test.exp
noinst_PROGRAMS = test-python_loader
noinst_PROGRAMS = src/testsuite/test-python_loader
# Shouldn't need Gtkmm! This is a coding anomaly
test_python_loader_CPPFLAGS = \
src_testsuite_test_python_loader_CPPFLAGS = \
-I@top_srcdir@/src \
-DPYCDIR="\"$(pycdir)\"" \
-DMODDIR="\"$(moddir)\"" \
@ -326,10 +326,10 @@ test_python_loader_CPPFLAGS = \
$(GLIBMM_CFLAGS) \
$(GTKMM_CFLAGS) \
$(GTHREAD_CFLAGS)
test_python_loader_LDFLAGS = \
src_testsuite_test_python_loader_LDFLAGS = \
src/backend/pyloader/libpyloader.la \
$(GTKMM_LIBS) $(GTHREAD_LIBS)
test_python_loader_SOURCES = \
src_testsuite_test_python_loader_SOURCES = \
src/testsuite/test-python_loader.cc \
src/start_gui.cc \
src/standard_io.cc \

View File

@ -15,13 +15,8 @@ class fcfs(Policy) :
return -1
def sort_queue(self, event, queue):
print 'Entering sort_queue'
cmpf = lambda a, b: \
a.get_schedulable().get_arrival_time() < \
b.get_schedulable().get_arrival_time()
try:
self.sort(queue,cmpf)
except:
print "Unexpected error:", sys.exc_info()[0]
raise
self.sort(queue,cmpf)