Changeset 6fb003f in rtems-libbsd for testsuite/syscalls01/test_main.c


Ignore:
Timestamp:
Jul 26, 2018, 10:03:45 AM (15 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
c1e05b9ea378b2971e3d7704779112b4bc4296da, 4a77611a223ea883fb548679b516d326a020d447
Children:
3df89c0
Parents:
94b5368
Message:

Fix sporadic test failures via uma_timeout()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuite/syscalls01/test_main.c

    r94b5368 r6fb003f  
    11/*
    2  * Copyright (c) 2013 embedded brains GmbH.  All rights reserved.
     2 * Copyright (c) 2013, 2018 embedded brains GmbH.  All rights reserved.
    33 *
    44 *  embedded brains GmbH
     
    3939#include <sys/time.h>
    4040#include <sys/filio.h>
     41#include <vm/uma.h>
    4142#include <netinet/in.h>
    4243#include <arpa/inet.h>
     
    16001601}
    16011602
    1602 static void set_self_prio(rtems_task_priority prio)
    1603 {
    1604   rtems_status_code sc;
    1605 
    1606   sc = rtems_task_set_priority(RTEMS_SELF, prio, &prio);
    1607   assert(sc == RTEMS_SUCCESSFUL);
    1608 }
    1609 
    16101603static void
    16111604test_main(void)
     
    16131606
    16141607        /*
    1615          * No interruptions by the timer server.  The uma_timeout() may need
    1616          * some dynamic memory.  This could disturb the no memory tests.
     1608         * Stop interferences of uma_timeout() which may need some dynamic
     1609         * memory.  This could disturb the no memory tests.
    16171610         */
    1618         set_self_prio(1);
     1611        rtems_uma_drain_timeout();
    16191612
    16201613        /* Must be first test to ensure resource checks work */
Note: See TracChangeset for help on using the changeset viewer.