mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 09:25:17 +08:00
syscalls01: Fix sporadic test failures
This commit is contained in:
@@ -1599,10 +1599,24 @@ test_setgethostname(void)
|
||||
assert(in[sizeof(in) - 1] == '\0');
|
||||
}
|
||||
|
||||
static void set_self_prio(rtems_task_priority prio)
|
||||
{
|
||||
rtems_status_code sc;
|
||||
|
||||
sc = rtems_task_set_priority(RTEMS_SELF, prio, &prio);
|
||||
assert(sc == RTEMS_SUCCESSFUL);
|
||||
}
|
||||
|
||||
static void
|
||||
test_main(void)
|
||||
{
|
||||
|
||||
/*
|
||||
* No interruptions by the timer server. The uma_timeout() may need
|
||||
* some dynamic memory. This could disturb the no memory tests.
|
||||
*/
|
||||
set_self_prio(1);
|
||||
|
||||
/* Must be first test to ensure resource checks work */
|
||||
test_sockets();
|
||||
|
||||
|
Reference in New Issue
Block a user