host: remove leftovers from using system clock in tests
There was some leftover constants and a #include we are no longer using due to using a monotonic counter, clean it up. BUG=chromium:1013701 BRANCH=none TEST=buildall Change-Id: Ieeb130aef9ee89d65459f52c8f34753c30c3c388 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1879335 Reviewed-by: Edward Hill <ecgh@chromium.org>
This commit is contained in:
parent
16275bb36d
commit
ed997d3802
|
@ -62,7 +62,6 @@ CFLAGS_TEST=$(if $(TEST_BUILD),-DTEST_BUILD=$(EMPTY) \
|
|||
-DTEST_TASKFILE=$(PROJECT).tasklist,) \
|
||||
$(if $(CTS_MODULE), $(CFLAGS_CTS)) \
|
||||
$(if $(EMU_BUILD),-DEMU_BUILD=$(EMPTY)) \
|
||||
$(if $($(PROJECT)-scale),-DTEST_TIME_SCALE=$($(PROJECT)-scale)) \
|
||||
-DTEST_$(PROJECT)=$(EMPTY) -DTEST_$(UC_PROJECT)=$(EMPTY) \
|
||||
$(if $(TEST_ASAN),-fsanitize=address) \
|
||||
$(if $(TEST_MSAN),-fsanitize=memory) \
|
||||
|
|
|
@ -7,33 +7,12 @@
|
|||
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "task.h"
|
||||
#include "test_util.h"
|
||||
#include "timer.h"
|
||||
#include "util.h"
|
||||
|
||||
/*
|
||||
* For test that need to test for longer than the default time limit,
|
||||
* adjust its time scale in test/build.mk by specifying
|
||||
* <test_name>-scale=<new scale>.
|
||||
*/
|
||||
#ifndef TEST_TIME_SCALE
|
||||
#define TEST_TIME_SCALE 1
|
||||
#endif
|
||||
|
||||
/*
|
||||
* To increase the stability of timing sensitive unit tests, slow
|
||||
* down the time by 10x. This only affects active run time (including
|
||||
* udelay() calls). To an unit test, the only effect is increased code
|
||||
* execution speed. However, this comes at the cost of prolonged test
|
||||
* run time for tests that use udelay(). Fortunately, most of our tests
|
||||
* use usleep/msleep, and for tests that use udelay(), we can scale
|
||||
* the time as mentioned above.
|
||||
*/
|
||||
#define TEST_TIME_SLOW_DOWN 10
|
||||
|
||||
static timestamp_t boot_time;
|
||||
static int time_set;
|
||||
|
||||
|
|
|
@ -109,7 +109,6 @@ fpsensor-y=fpsensor.o
|
|||
hooks-y=hooks.o
|
||||
host_command-y=host_command.o
|
||||
inductive_charging-y=inductive_charging.o
|
||||
interrupt-scale=10
|
||||
interrupt-y=interrupt.o
|
||||
is_enabled-y=is_enabled.o
|
||||
kb_8042-y=kb_8042.o
|
||||
|
|
Loading…
Reference in New Issue