Changeset da01642 in rtems


Ignore:
Timestamp:
07/13/22 06:14:07 (20 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
656765c7
Parents:
cdc1eb7d
git-author:
Sebastian Huber <sebastian.huber@…> (07/13/22 06:14:07)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/14/22 08:47:36)
Message:

spextensions01: Fix assertion

Commit 80090639a62b50d7d66614ca789e4592924a06e5 altered the system state
change. Account for this in assert_allocator_protected_thread_context().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/spextensions01/init.c

    rcdc1eb7d rda01642  
    3131static rtems_id master_task;
    3232
     33static bool before_initialization(void)
     34{
     35  return _System_state_Is_before_initialization(_System_state_Get());
     36}
     37
    3338static bool before_multitasking(void)
    3439{
     
    6267static void assert_allocator_protected_thread_context(void)
    6368{
    64   assert(_Thread_Dispatch_is_enabled() || before_multitasking());
     69  assert(
     70    _Thread_Dispatch_is_enabled() ||
     71    before_initialization() ||
     72    before_multitasking()
     73  );
    6574  assert(_RTEMS_Allocator_is_owner());
    66   assert(life_protected() || before_multitasking());
     75  assert(life_protected());
    6776}
    6877
Note: See TracChangeset for help on using the changeset viewer.