mirror of https://github.com/rusefi/rusefi-1.git
Something something unit test ETB does not work #1966
This commit is contained in:
parent
e29911114a
commit
ee7e1880a2
|
@ -56,7 +56,10 @@ void applyIACposition(percent_t position DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
||||||
|
|
||||||
if (CONFIG(useETBforIdleControl)) {
|
if (CONFIG(useETBforIdleControl)) {
|
||||||
if (!Sensor::hasSensor(SensorType::AcceleratorPedal)) {
|
if (!Sensor::hasSensor(SensorType::AcceleratorPedal)) {
|
||||||
|
//todo: something is wrong here in unit test mode?
|
||||||
|
#if !EFI_UNIT_TEST
|
||||||
firmwareError(CUSTOM_NO_ETB_FOR_IDLE, "No ETB to use for idle");
|
firmwareError(CUSTOM_NO_ETB_FOR_IDLE, "No ETB to use for idle");
|
||||||
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,11 @@
|
||||||
* @author Andrey Belomutskiy, (c) 2012-2020
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "test_signal_executor.h"
|
#include "engine_test_helper.h"
|
||||||
|
#include "engine_controller.h"
|
||||||
|
|
||||||
|
TEST(start, startStop) {
|
||||||
|
WITH_ENGINE_TEST_HELPER(BMW_M73_PROTEUS);
|
||||||
|
// this is a pull-up, so 'true' on start-up
|
||||||
|
setMockState(engineConfiguration->starterControlPin, true PASS_ENGINE_PARAMETER_SUFFIX);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue