#657 fixing fresh defect

This commit is contained in:
rusefi 2019-02-01 22:55:35 -05:00
parent 7ff2ff31a0
commit c2f48b1a56
3 changed files with 3 additions and 1 deletions

View File

@ -36,6 +36,7 @@
#define get_operationMode CONFIG_ACCESS_FOR_CONFIG_HEADER_ONLY(operationMode)
#define get_specs_displacement CONFIG_ACCESS_FOR_CONFIG_HEADER_ONLY(specs.displacement)
#define get_specs_cylindersCount CONFIG_ACCESS_FOR_CONFIG_HEADER_ONLY(specs.cylindersCount)
#define get_injector_flow CONFIG_ACCESS_FOR_CONFIG_HEADER_ONLY(injector.flow)
#endif /* CONTROLLERS_MATH_CONFIG_ENGINE_SPECS_H_ */

View File

@ -89,7 +89,7 @@ static float getCycleAirMass(float volumetricEfficiency, float MAP, float tempK
float getCylinderAirMass(float volumetricEfficiency, float MAP, float tempK DECLARE_GLOBAL_SUFFIX) {
return getCycleAirMass(volumetricEfficiency, MAP, tempK PASS_GLOBAL_SUFFIX)
/ get_specs_displacement;
/ get_specs_cylindersCount;
}
/**

View File

@ -57,6 +57,7 @@ GTEST_API_ int main(int argc, char **argv) {
// uncomment if you only want to run selected tests
//::testing::GTEST_FLAG(filter) = "*testFasterEngineSpinningUp*";
int result = RUN_ALL_TESTS();
// windows ERRORLEVEL in Jenkins batch file seems to want negative value to detect failure
return result == 0 ? 0 : -1;
}