mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-01 15:10:56 +00:00
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:
parent
c9f7e9dbb2
commit
b57834f26b
@ -19,6 +19,7 @@
|
|||||||
#include <timer_session/connection.h>
|
#include <timer_session/connection.h>
|
||||||
#include <nic/packet_allocator.h>
|
#include <nic/packet_allocator.h>
|
||||||
#include <os/config.h>
|
#include <os/config.h>
|
||||||
|
#include <base/sleep.h>
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include <lwip/sockets.h>
|
#include <lwip/sockets.h>
|
||||||
@ -166,5 +167,13 @@ int main()
|
|||||||
}
|
}
|
||||||
|
|
||||||
log("Test done");
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user