mirror of https://github.com/FOME-Tech/fome-fw.git
unit test global cleanup
This commit is contained in:
parent
47ee857699
commit
80d9fd41aa
|
@ -38,13 +38,10 @@ extern "C"
|
||||||
#define CH_FREQUENCY 1000
|
#define CH_FREQUENCY 1000
|
||||||
#define NO_CACHE
|
#define NO_CACHE
|
||||||
|
|
||||||
typedef int bool_t;
|
|
||||||
typedef uint32_t systime_t;
|
typedef uint32_t systime_t;
|
||||||
|
|
||||||
void chDbgAssert(int c, char *msg, void *arg);
|
void chDbgAssert(int c, char *msg, void *arg);
|
||||||
|
|
||||||
#define TICKS_IN_MS 100
|
|
||||||
|
|
||||||
#define chDbgCheck(x, y) chDbgAssert(x, y, NULL)
|
#define chDbgCheck(x, y) chDbgAssert(x, y, NULL)
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "global_execution_queue.h"
|
#include "global_execution_queue.h"
|
||||||
|
|
||||||
bool_t debugSignalExecutor = false;
|
bool debugSignalExecutor = false;
|
||||||
|
|
||||||
TestExecutor::~TestExecutor() {
|
TestExecutor::~TestExecutor() {
|
||||||
// Flush the queue and reset all scheduling_s at the end of a test's execution
|
// Flush the queue and reset all scheduling_s at the end of a test's execution
|
||||||
|
|
|
@ -170,7 +170,7 @@ static void assertREqualsM(const char *msg, void *expected, void *actual) {
|
||||||
assertEqualsM(msg, (float)(uint64_t)expected, (float)(uint64_t)actual);
|
assertEqualsM(msg, (float)(uint64_t)expected, (float)(uint64_t)actual);
|
||||||
}
|
}
|
||||||
|
|
||||||
extern bool_t debugSignalExecutor;
|
extern bool debugSignalExecutor;
|
||||||
|
|
||||||
TEST(misc, testRpmCalculator) {
|
TEST(misc, testRpmCalculator) {
|
||||||
EngineTestHelper eth(engine_type_e::FORD_INLINE_6_1995);
|
EngineTestHelper eth(engine_type_e::FORD_INLINE_6_1995);
|
||||||
|
|
Loading…
Reference in New Issue