Classes | Macros | Functions | Variables
tasks_test.cpp File Reference
#include "unit.hpp"
#include "tasks_test.hpp"
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <vector>
#include <extras/PeriodicActivity.hpp>
#include <os/TimeService.hpp>
#include <Logger.hpp>
#include <boost/scoped_ptr.hpp>
Include dependency graph for tasks_test.cpp:

Go to the source code of this file.

Classes

struct  TestAllocate
 
struct  TestOverrun
 
struct  TestPeriodic
 
struct  TestRunnableInterface
 
struct  TestSelfRemove
 

Macros

#define BOOST_CHECK_EQUAL_MESSAGE(v1, v2, M)   BOOST_CHECK_MESSAGE( v1==v2, M)
 
#define BOOST_REQUIRE_EQUAL_MESSAGE(v1, v2, M)   BOOST_REQUIRE_MESSAGE( v1==v2, M)
 

Functions

 BOOST_AUTO_TEST_CASE (testFailInit)
 
 BOOST_AUTO_TEST_CASE (testMaxOverrun)
 
 BOOST_AUTO_TEST_CASE (testDefaultWaitPeriodPolicy)
 
 BOOST_AUTO_TEST_CASE (testAbsoluteWaitPeriodPolicy)
 
 BOOST_AUTO_TEST_CASE (testRelativeWaitPeriodPolicy)
 
 BOOST_AUTO_TEST_CASE (testThread)
 
 BOOST_AUTO_TEST_CASE (testNonPeriodic)
 
 BOOST_AUTO_TEST_CASE (testActivityNP)
 
 BOOST_AUTO_TEST_CASE (testActivityBreakLoop)
 
 BOOST_AUTO_TEST_CASE (testSelfRemove)
 
 BOOST_AUTO_TEST_CASE (testActivityNPSelfRemove)
 
 BOOST_AUTO_TEST_CASE (testActivityPSelfRemove)
 
 BOOST_AUTO_TEST_CASE (testStartStop)
 
 BOOST_AUTO_TEST_CASE (testRunnableInterface)
 
 BOOST_AUTO_TEST_CASE (testAllocation)
 

Variables

static const nsecs WaitPeriodPolicyTolerance = Seconds_to_nsecs(0.01)
 

Macro Definition Documentation

#define BOOST_CHECK_EQUAL_MESSAGE (   v1,
  v2,
 
)    BOOST_CHECK_MESSAGE( v1==v2, M)

Definition at line 40 of file tasks_test.cpp.

#define BOOST_REQUIRE_EQUAL_MESSAGE (   v1,
  v2,
 
)    BOOST_REQUIRE_MESSAGE( v1==v2, M)

Definition at line 41 of file tasks_test.cpp.

Function Documentation

BOOST_AUTO_TEST_CASE ( testFailInit  )

Definition at line 286 of file tasks_test.cpp.

BOOST_AUTO_TEST_CASE ( testMaxOverrun  )

Definition at line 301 of file tasks_test.cpp.

BOOST_AUTO_TEST_CASE ( testDefaultWaitPeriodPolicy  )

Definition at line 329 of file tasks_test.cpp.

BOOST_AUTO_TEST_CASE ( testAbsoluteWaitPeriodPolicy  )

Definition at line 350 of file tasks_test.cpp.

BOOST_AUTO_TEST_CASE ( testRelativeWaitPeriodPolicy  )

Definition at line 372 of file tasks_test.cpp.

BOOST_AUTO_TEST_CASE ( testThread  )

Definition at line 394 of file tasks_test.cpp.

BOOST_AUTO_TEST_CASE ( testNonPeriodic  )

Definition at line 469 of file tasks_test.cpp.

BOOST_AUTO_TEST_CASE ( testActivityNP  )

Definition at line 495 of file tasks_test.cpp.

BOOST_AUTO_TEST_CASE ( testActivityBreakLoop  )

Definition at line 521 of file tasks_test.cpp.

BOOST_AUTO_TEST_CASE ( testSelfRemove  )

Definition at line 546 of file tasks_test.cpp.

BOOST_AUTO_TEST_CASE ( testActivityNPSelfRemove  )

Definition at line 563 of file tasks_test.cpp.

BOOST_AUTO_TEST_CASE ( testActivityPSelfRemove  )

Definition at line 576 of file tasks_test.cpp.

BOOST_AUTO_TEST_CASE ( testStartStop  )

Definition at line 591 of file tasks_test.cpp.

BOOST_AUTO_TEST_CASE ( testRunnableInterface  )

Definition at line 598 of file tasks_test.cpp.

BOOST_AUTO_TEST_CASE ( testAllocation  )

Definition at line 609 of file tasks_test.cpp.

Variable Documentation

const nsecs WaitPeriodPolicyTolerance = Seconds_to_nsecs(0.01)
static

Definition at line 327 of file tasks_test.cpp.



rtt
Author(s): RTT Developers
autogenerated on Fri Oct 25 2019 03:59:45