Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
lumiera::test::anonymous_namespace{subsystem-runner-test.cpp} Namespace Reference

Classes

class  MockSys
 A simulated "Lumiera Subsystem". More...
 

Functions

int draw_rand_runtime ()
 
 LUMIERA_ERROR_DEFINE (TEST, "simulated failure.")
 marker for simulated failure exceptions
 

Variables

const uint MAX_RUNNING_TIME_ms = 80
 limit for the randomly selected duration of subsystem's running phase (milliseconds)
 
const uint MIN_RUNNING_TIME_ms = 20
 
const uint TICK_DURATION_ms = 5
 the "running" subsystem checks for a shutdown request every XX milliseconds
 
const uint DELAY_FOR_FLOUNDERING_THRAD_ms = 20
 due to a shortcoming of this test fixture, a floundering subsystem continues to run for a short time after the sync barrier.
 
lib::Cmdline dummyArgs ("")
 dummy options just to be ignored
 
lumiera::Option dummyOpt (dummyArgs)
 

Function Documentation

◆ draw_rand_runtime()

int draw_rand_runtime ( )
inline

Definition at line 64 of file subsystem-runner-test.cpp.

References draw_rand_runtime(), MAX_RUNNING_TIME_ms, and MIN_RUNNING_TIME_ms.

Referenced by draw_rand_runtime().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LUMIERA_ERROR_DEFINE()

LUMIERA_ERROR_DEFINE ( TEST  ,
"simulated failure."   
)

marker for simulated failure exceptions

Variable Documentation

◆ MAX_RUNNING_TIME_ms

const uint MAX_RUNNING_TIME_ms = 80

limit for the randomly selected duration of subsystem's running phase (milliseconds)

Definition at line 60 of file subsystem-runner-test.cpp.

Referenced by draw_rand_runtime().

◆ MIN_RUNNING_TIME_ms

const uint MIN_RUNNING_TIME_ms = 20

Definition at line 61 of file subsystem-runner-test.cpp.

Referenced by draw_rand_runtime().

◆ TICK_DURATION_ms

const uint TICK_DURATION_ms = 5

the "running" subsystem checks for a shutdown request every XX milliseconds

Definition at line 72 of file subsystem-runner-test.cpp.

Referenced by MockSys::run().

◆ DELAY_FOR_FLOUNDERING_THRAD_ms

const uint DELAY_FOR_FLOUNDERING_THRAD_ms = 20

due to a shortcoming of this test fixture, a floundering subsystem continues to run for a short time after the sync barrier.

Relevant for singleSubsys_start_failure().

Definition at line 79 of file subsystem-runner-test.cpp.

◆ dummyArgs

lib::Cmdline dummyArgs("") ( ""  )

dummy options just to be ignored

◆ dummyOpt