summaryrefslogtreecommitdiff
path: root/chip/host/reboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/host/reboot.c')
-rw-r--r--chip/host/reboot.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/chip/host/reboot.c b/chip/host/reboot.c
index 7fdb6f7f8e..c6eb83ce30 100644
--- a/chip/host/reboot.c
+++ b/chip/host/reboot.c
@@ -8,10 +8,18 @@
#include <string.h>
#include <unistd.h>
+#include "console.h"
#include "host_test.h"
#include "reboot.h"
#include "test_util.h"
+#ifdef TEST_FUZZ
+/* reboot breaks fuzzing, let's just not do it. */
+void emulator_reboot(void)
+{
+ ccprints("Emulator would reboot here. Fuzzing: doing nothing.");
+}
+#else /* !TEST_FUZZ */
__attribute__((noreturn))
void emulator_reboot(void)
{
@@ -21,3 +29,4 @@ void emulator_reboot(void)
while (1)
;
}
+#endif /* !TEST_FUZZ */