|
18 |
* Author: Claudio Freire <claudio-daniel.freire@inria.fr> |
18 |
* Author: Claudio Freire <claudio-daniel.freire@inria.fr> |
19 |
*/ |
19 |
*/ |
20 |
#include "ns3/test.h" |
20 |
#include "ns3/test.h" |
|
|
21 |
#include "ns3/log.h" |
21 |
#include "ns3/simulator.h" |
22 |
#include "ns3/simulator.h" |
22 |
#include "ns3/list-scheduler.h" |
23 |
#include "ns3/list-scheduler.h" |
23 |
#include "ns3/heap-scheduler.h" |
24 |
#include "ns3/heap-scheduler.h" |
|
204 |
void |
205 |
void |
205 |
ThreadedSimulatorEventsTestCase::DoRun (void) |
206 |
ThreadedSimulatorEventsTestCase::DoRun (void) |
206 |
{ |
207 |
{ |
|
|
208 |
NS_LOG_UNCOND ("DoRun"); |
207 |
m_stop = false; |
209 |
m_stop = false; |
208 |
Simulator::SetScheduler (m_schedulerFactory); |
210 |
Simulator::SetScheduler (m_schedulerFactory); |
209 |
|
211 |
|
|
232 |
: TestSuite ("threaded-simulator") |
234 |
: TestSuite ("threaded-simulator") |
233 |
{ |
235 |
{ |
234 |
std::string simulatorTypes[] = { |
236 |
std::string simulatorTypes[] = { |
|
|
237 |
#ifdef HAVE_RT |
235 |
"ns3::RealtimeSimulatorImpl", |
238 |
"ns3::RealtimeSimulatorImpl", |
|
|
239 |
#endif |
236 |
"ns3::DefaultSimulatorImpl" |
240 |
"ns3::DefaultSimulatorImpl" |
237 |
}; |
241 |
}; |
238 |
std::string schedulerTypes[] = { |
242 |
std::string schedulerTypes[] = { |
239 |
"ns3::ListScheduler", |
243 |
"ns3::ListScheduler", |
240 |
"ns3::HeapScheduler", |
244 |
"ns3::HeapScheduler", |
241 |
"ns3::MapScheduler", |
245 |
"ns3::MapScheduler", |
242 |
"ns3::CalendarScheduler", |
|
|
243 |
#if 0 |
246 |
#if 0 |
244 |
// Bug 1397 |
247 |
// Bug 1397 |
245 |
"ns3::CalendarScheduler", |
248 |
"ns3::CalendarScheduler", |