Changeset b3613c3a in rtems


Ignore:
Timestamp:
Apr 16, 2014, 10:34:07 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
561c7b2
Parents:
2e06be4
Message:

smptests/smpload01: Reduce timeout value

Use events instead of suspend/resume.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/smptests/smpload01/init.c

    r2e06be4 rb3613c3a  
    9090    rtems_counter_delay_ticks(delay);
    9191
    92     /*
    93      * FIXME: Using a smaller value for the timeout triggers bug leading to
    94      * system corruption.
    95      */
    96     sc = rtems_semaphore_obtain(ctx->inherit_sem, RTEMS_WAIT, 100);
     92    sc = rtems_semaphore_obtain(ctx->inherit_sem, RTEMS_WAIT, 1);
    9793    rtems_test_assert(sc == RTEMS_TIMEOUT);
    9894
     
    107103      rtems_test_assert(sc == RTEMS_SUCCESSFUL);
    108104
    109       sc = rtems_task_resume(ctx->inherit_release_task_id);
     105      sc = rtems_event_transient_send(ctx->inherit_release_task_id);
    110106      rtems_test_assert(sc == RTEMS_SUCCESSFUL);
    111107
     
    134130    rtems_task_priority prio = INHERIT_RELEASE_PRIO_LOW;
    135131
    136     sc = rtems_task_suspend(RTEMS_SELF);
     132    sc = rtems_event_transient_receive(RTEMS_WAIT, RTEMS_NO_TIMEOUT);
    137133    rtems_test_assert(sc == RTEMS_SUCCESSFUL);
    138134
Note: See TracChangeset for help on using the changeset viewer.