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
This commit is contained in:
Martin Stein 2017-01-19 19:07:01 +01:00 committed by Norman Feske
parent c9f7e9dbb2
commit b57834f26b

View File

@ -19,6 +19,7 @@
#include <timer_session/connection.h>
#include <nic/packet_allocator.h>
#include <os/config.h>
#include <base/sleep.h>
extern "C" {
#include <lwip/sockets.h>
@ -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;
}