summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.toolchain1
-rw-r--r--core/host/timer.c21
-rw-r--r--test/build.mk1
3 files changed, 0 insertions, 23 deletions
diff --git a/Makefile.toolchain b/Makefile.toolchain
index 49a453d1a0..f7ae354b10 100644
--- a/Makefile.toolchain
+++ b/Makefile.toolchain
@@ -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) \
diff --git a/core/host/timer.c b/core/host/timer.c
index f7067dce08..c99c002533 100644
--- a/core/host/timer.c
+++ b/core/host/timer.c
@@ -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;
diff --git a/test/build.mk b/test/build.mk
index f4f2d5d44b..b11e055e0f 100644
--- a/test/build.mk
+++ b/test/build.mk
@@ -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