summaryrefslogtreecommitdiff
path: root/chip/host/reboot.c
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2013-09-01 10:34:14 +0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-09-04 20:32:45 +0000
commitf2046ce3dc510b7c5c2673d291d199cae70fb9d1 (patch)
treee5dec022d61134c0993dc60acf548808b93ae752 /chip/host/reboot.c
parent1764246ee90ccac33bc1e9242c030999c9130fbb (diff)
downloadchrome-ec-f2046ce3dc510b7c5c2673d291d199cae70fb9d1.tar.gz
Flush test coverage information before rebooting emulator
If we reboots the emulator without flushing test coverage information, the test coverage report will be incorrect. Let's fix this by flushing it before every reboot. BUG=chrome-os-partner:19235 TEST=Generate test coverage report and check correctness. BRANCH=None Change-Id: I1eb060e419b767f382325bed841366c491ba56b7 Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/167770 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'chip/host/reboot.c')
-rw-r--r--chip/host/reboot.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/chip/host/reboot.c b/chip/host/reboot.c
index dd7c2b2fe2..526276aede 100644
--- a/chip/host/reboot.c
+++ b/chip/host/reboot.c
@@ -10,9 +10,11 @@
#include "host_test.h"
#include "reboot.h"
+#include "test_util.h"
void emulator_reboot(void)
{
char *argv[] = {strdup(__get_prog_name()), NULL};
+ emulator_flush();
execv(__get_prog_name(), argv);
}