From b57834f26b11eafc34552911cf20df1dac13cfe9 Mon Sep 17 00:00:00 2001 From: Martin Stein Date: Thu, 19 Jan 2017 19:07:01 +0100 Subject: [PATCH] lwip/http_clnt: circumvent LWIP cleanup exceptions Cleaning up LWIP when returning from the main function sporadically leads to endless errors "Error: sys_arch_mbox_fetch: unknown exception occured!". We let the client sleep forever at the end of its main function to prevent tests from failing due to a flooded log. Reg #2193 --- repos/libports/src/test/lwip/http_clnt/main.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/repos/libports/src/test/lwip/http_clnt/main.cc b/repos/libports/src/test/lwip/http_clnt/main.cc index 1587f2a043..b8b64761ec 100644 --- a/repos/libports/src/test/lwip/http_clnt/main.cc +++ b/repos/libports/src/test/lwip/http_clnt/main.cc @@ -19,6 +19,7 @@ #include #include #include +#include extern "C" { #include @@ -166,5 +167,13 @@ int main() } log("Test done"); + + /* + * FIXME Cleaning up LWIP when returning from the main function + * sporadically leads to endless errors "Error: sys_arch_mbox_fetch: + * unknown exception occured!". We let the client sleep here to + * prevent tests from failing due to a flooded log. + */ + sleep_forever(); return 0; }