VW warnings on cranking #2861
This commit is contained in:
parent
219d9feaef
commit
7c7766efcc
|
@ -28,6 +28,7 @@ extern int timeNowUs;
|
||||||
extern WarningCodeState unitTestWarningCodeState;
|
extern WarningCodeState unitTestWarningCodeState;
|
||||||
extern engine_configuration_s & activeConfiguration;
|
extern engine_configuration_s & activeConfiguration;
|
||||||
extern bool printTriggerDebug;
|
extern bool printTriggerDebug;
|
||||||
|
extern bool printTriggerTrace;
|
||||||
extern bool printFuelDebug;
|
extern bool printFuelDebug;
|
||||||
extern int minCrankingRpm;
|
extern int minCrankingRpm;
|
||||||
|
|
||||||
|
@ -380,3 +381,8 @@ void EngineTestHelper::setTriggerType(trigger_type_e trigger DECLARE_ENGINE_PARA
|
||||||
void setupSimpleTestEngineWithMafAndTT_ONE_trigger(EngineTestHelper *eth, injection_mode_e injectionMode) {
|
void setupSimpleTestEngineWithMafAndTT_ONE_trigger(EngineTestHelper *eth, injection_mode_e injectionMode) {
|
||||||
setupSimpleTestEngineWithMaf(eth, injectionMode, TT_ONE);
|
setupSimpleTestEngineWithMaf(eth, injectionMode, TT_ONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void setVerboseTrigger(bool isEnabled) {
|
||||||
|
printTriggerDebug = isEnabled;
|
||||||
|
printTriggerTrace = isEnabled;
|
||||||
|
}
|
||||||
|
|
|
@ -100,3 +100,5 @@ private:
|
||||||
|
|
||||||
void setupSimpleTestEngineWithMafAndTT_ONE_trigger(EngineTestHelper *eth, injection_mode_e injMode = IM_BATCH);
|
void setupSimpleTestEngineWithMafAndTT_ONE_trigger(EngineTestHelper *eth, injection_mode_e injMode = IM_BATCH);
|
||||||
void setupSimpleTestEngineWithMaf(EngineTestHelper *eth, injection_mode_e injectionMode, trigger_type_e trigger);
|
void setupSimpleTestEngineWithMaf(EngineTestHelper *eth, injection_mode_e injectionMode, trigger_type_e trigger);
|
||||||
|
|
||||||
|
void setVerboseTrigger(bool isEnabled);
|
||||||
|
|
|
@ -13,15 +13,17 @@ TEST(crankingVW, vwRealCrankingFromFile) {
|
||||||
CsvReader reader;
|
CsvReader reader;
|
||||||
reader.triggerCount = 1;
|
reader.triggerCount = 1;
|
||||||
int indeces[1] = {0};
|
int indeces[1] = {0};
|
||||||
|
// setVerboseTrigger(true);
|
||||||
|
|
||||||
reader.open("tests/trigger/recourses/nick_1.csv", indeces);
|
reader.open("tests/trigger/recourses/nick_1.csv", indeces);
|
||||||
WITH_ENGINE_TEST_HELPER (VW_ABA);
|
WITH_ENGINE_TEST_HELPER (VW_ABA);
|
||||||
|
eth.setTriggerType(TT_60_2_VW PASS_ENGINE_PARAMETER_SUFFIX);
|
||||||
|
|
||||||
while (reader.haveMore()) {
|
while (reader.haveMore()) {
|
||||||
reader.processLine(ð);
|
reader.processLine(ð);
|
||||||
}
|
}
|
||||||
|
|
||||||
ASSERT_EQ( 0, eth.recentWarnings()->getCount())<< "warningCounter#vwRealCranking";
|
ASSERT_EQ( 3, eth.recentWarnings()->getCount())<< "warningCounter#vwRealCranking";
|
||||||
ASSERT_EQ( 0, GET_RPM())<< reader.lineIndex;
|
ASSERT_EQ( 1683, GET_RPM())<< reader.lineIndex;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue