From 0a45fa17086d4556b7cb4ea0a9f53894197bc897 Mon Sep 17 00:00:00 2001 From: Vic Yang Date: Thu, 2 May 2013 00:37:07 +0800 Subject: Pthread-based emulator for unit testing This is the first version of pthread-based RTOS emulator. With this, we will be able to test high-level modules entirely on the host machine. BUG=chrome-os-partner:19325 TEST='make runtests' and see tests passing. BRANCH=None Change-Id: I1f5fcd76aa84bdb46c7d35c5e60ae5d92fd3a319 Signed-off-by: Vic Yang Reviewed-on: https://gerrit.chromium.org/gerrit/49954 Reviewed-by: Vincent Palatin --- common/main.c | 2 +- common/system_common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'common') diff --git a/common/main.c b/common/main.c index bd1b6f4543..9a5a75f1cd 100644 --- a/common/main.c +++ b/common/main.c @@ -27,7 +27,7 @@ #define CPUTS(outstr) cputs(CC_SYSTEM, outstr) #define CPRINTF(format, args...) cprintf(CC_SYSTEM, format, ## args) -int main(void) +test_mockable int main(void) { /* * Pre-initialization (pre-verified boot) stage. Initialization at diff --git a/common/system_common.c b/common/system_common.c index dbb83303b1..239dd12a75 100644 --- a/common/system_common.c +++ b/common/system_common.c @@ -104,7 +104,7 @@ int system_is_locked(void) #endif } -int system_usable_ram_end(void) +test_mockable int system_usable_ram_end(void) { /* Leave space at the end of RAM for jump data and tags. * -- cgit v1.2.1