more PROD code into unit test
This commit is contained in:
parent
deead8f8ff
commit
cbc1aef722
|
@ -638,6 +638,9 @@ static void rpnEval(char *line) {
|
|||
void initFsioImpl(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
||||
#if EFI_PROD_CODE || EFI_SIMULATOR
|
||||
logger = sharedLogger;
|
||||
#else
|
||||
// only unit test needs this
|
||||
sysPool.reset();
|
||||
#endif
|
||||
|
||||
#if EFI_FUEL_PUMP
|
||||
|
|
|
@ -83,6 +83,9 @@
|
|||
void mostCommonInitEngineController(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
||||
initSensors(sharedLogger PASS_ENGINE_PARAMETER_SUFFIX);
|
||||
initAccelEnrichment(sharedLogger PASS_ENGINE_PARAMETER_SUFFIX);
|
||||
#if EFI_FSIO
|
||||
initFsioImpl(sharedLogger PASS_ENGINE_PARAMETER_SUFFIX);
|
||||
#endif /* EFI_FSIO */
|
||||
}
|
||||
|
||||
#if !EFI_UNIT_TEST
|
||||
|
@ -661,10 +664,6 @@ void commonInitEngineController(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_S
|
|||
return;
|
||||
}
|
||||
mostCommonInitEngineController(sharedLogger PASS_ENGINE_PARAMETER_SUFFIX);
|
||||
|
||||
#if EFI_FSIO
|
||||
initFsioImpl(sharedLogger PASS_ENGINE_PARAMETER_SUFFIX);
|
||||
#endif /* EFI_FSIO */
|
||||
}
|
||||
|
||||
void initEngineContoller(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
||||
|
|
|
@ -130,7 +130,7 @@ TEST(miataNA6, realCranking) {
|
|||
/* 134 */ EVENT(/* timestamp*/3.031735, /*index*/1, /*value*/true);
|
||||
|
||||
|
||||
ASSERT_EQ( 4, unitTestWarningCodeState.recentWarnings.getCount()) << "warningCounter#realCranking";
|
||||
ASSERT_EQ( 3, unitTestWarningCodeState.recentWarnings.getCount()) << "warningCounter#realCranking";
|
||||
// ASSERT_EQ(CUSTOM_SYNC_COUNT_MISMATCH, unitTestWarningCodeState.recentWarnings.get(0)) << "@0";
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue