test calendar+ns2calendar schedulers

This commit is contained in:
Mathieu Lacage
2009-01-15 20:55:34 +01:00
parent e4e6eb1ab0
commit 14fdfbf4b2

View File

@@ -316,6 +316,8 @@ Simulator::GetImplementation (void)
#include "list-scheduler.h"
#include "heap-scheduler.h"
#include "map-scheduler.h"
#include "calendar-scheduler.h"
#include "ns2-calendar-scheduler.h"
namespace ns3 {
@@ -742,6 +744,20 @@ SimulatorTests::RunTests (void)
}
Simulator::Destroy ();
Simulator::SetScheduler (CreateObject<CalendarScheduler> ());
if (!RunOneTest ())
{
result = false;
}
Simulator::Destroy ();
Simulator::SetScheduler (CreateObject<Ns2CalendarScheduler> ());
if (!RunOneTest ())
{
result = false;
}
Simulator::Destroy ();
Simulator::Schedule (Seconds (0.0), &foo0);
Simulator::Schedule (Seconds (0.0), &foo1, 0);
Simulator::Schedule (Seconds (0.0), &foo2, 0, 0);