reducing crazy in unit tests
This commit is contained in:
parent
fe2f857652
commit
b71d3c6111
|
@ -69,6 +69,11 @@ public:
|
||||||
void firePrimaryTriggerFall();
|
void firePrimaryTriggerFall();
|
||||||
void fireTriggerEvents(int count);
|
void fireTriggerEvents(int count);
|
||||||
void fireTriggerEventsWithDuration(float delayMs);
|
void fireTriggerEventsWithDuration(float delayMs);
|
||||||
|
/**
|
||||||
|
* todo: better method name since this method executes events in the FUTURE
|
||||||
|
* looks like such a method should be used only in some pretty narrow circumstances
|
||||||
|
* a healthy test should probably use executeActions instead?
|
||||||
|
*/
|
||||||
void clearQueue();
|
void clearQueue();
|
||||||
|
|
||||||
scheduling_s * assertEvent5(const char *msg, int index, void *callback, efitime_t expectedTimestamp);
|
scheduling_s * assertEvent5(const char *msg, int index, void *callback, efitime_t expectedTimestamp);
|
||||||
|
|
|
@ -332,7 +332,7 @@ TEST(misc, testRpmCalculator) {
|
||||||
ASSERT_EQ( 15, engine->triggerCentral.triggerState.getCurrentIndex()) << "index #1";
|
ASSERT_EQ( 15, engine->triggerCentral.triggerState.getCurrentIndex()) << "index #1";
|
||||||
|
|
||||||
|
|
||||||
eth.clearQueue();
|
eth.executeActions();
|
||||||
|
|
||||||
// debugSignalExecutor = true;
|
// debugSignalExecutor = true;
|
||||||
|
|
||||||
|
@ -944,7 +944,7 @@ TEST(big, testTwoWireBatch) {
|
||||||
eth.fireTriggerEventsWithDuration(20);
|
eth.fireTriggerEventsWithDuration(20);
|
||||||
// still no RPM since need to cycles measure cycle duration
|
// still no RPM since need to cycles measure cycle duration
|
||||||
eth.fireTriggerEventsWithDuration(20);
|
eth.fireTriggerEventsWithDuration(20);
|
||||||
eth.clearQueue();
|
eth.executeActions();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Trigger up - scheduling fuel for full engine cycle
|
* Trigger up - scheduling fuel for full engine cycle
|
||||||
|
@ -972,7 +972,7 @@ TEST(big, testSequential) {
|
||||||
eth.fireTriggerEventsWithDuration(20);
|
eth.fireTriggerEventsWithDuration(20);
|
||||||
// still no RPM since need to cycles measure cycle duration
|
// still no RPM since need to cycles measure cycle duration
|
||||||
eth.fireTriggerEventsWithDuration(20);
|
eth.fireTriggerEventsWithDuration(20);
|
||||||
eth.clearQueue();
|
eth.executeActions();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Trigger up - scheduling fuel for full engine cycle
|
* Trigger up - scheduling fuel for full engine cycle
|
||||||
|
|
Loading…
Reference in New Issue