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 engine_configuration_s & activeConfiguration;
|
||||
extern bool printTriggerDebug;
|
||||
extern bool printTriggerTrace;
|
||||
extern bool printFuelDebug;
|
||||
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) {
|
||||
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 setupSimpleTestEngineWithMaf(EngineTestHelper *eth, injection_mode_e injectionMode, trigger_type_e trigger);
|
||||
|
||||
void setVerboseTrigger(bool isEnabled);
|
||||
|
|
|
@ -13,15 +13,17 @@ TEST(crankingVW, vwRealCrankingFromFile) {
|
|||
CsvReader reader;
|
||||
reader.triggerCount = 1;
|
||||
int indeces[1] = {0};
|
||||
// setVerboseTrigger(true);
|
||||
|
||||
reader.open("tests/trigger/recourses/nick_1.csv", indeces);
|
||||
WITH_ENGINE_TEST_HELPER (VW_ABA);
|
||||
eth.setTriggerType(TT_60_2_VW PASS_ENGINE_PARAMETER_SUFFIX);
|
||||
|
||||
while (reader.haveMore()) {
|
||||
reader.processLine(ð);
|
||||
}
|
||||
|
||||
ASSERT_EQ( 0, eth.recentWarnings()->getCount())<< "warningCounter#vwRealCranking";
|
||||
ASSERT_EQ( 0, GET_RPM())<< reader.lineIndex;
|
||||
ASSERT_EQ( 3, eth.recentWarnings()->getCount())<< "warningCounter#vwRealCranking";
|
||||
ASSERT_EQ( 1683, GET_RPM())<< reader.lineIndex;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue