Changeset 58f09375 in rtems


Ignore:
Timestamp:
Jul 1, 2010, 5:00:33 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
98b785e
Parents:
cfcdb5b2
Message:

2010-07-01 Joel Sherrill <joel.sherrill@…>

  • sp68/init.c: Add alignment to region_area. Fix spelling.
Location:
testsuites/sptests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    rcfcdb5b2 r58f09375  
     12010-07-01      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * sp68/init.c: Add alignment to region_area. Fix spelling.
     4
    152010-06-28      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • testsuites/sptests/sp68/init.c

    rcfcdb5b2 r58f09375  
    4343static volatile bool obtain_try;
    4444static volatile bool obtain_done;
    45 static volatile bool release_happend;
    46 static volatile bool interrupt_happend;
    47 static volatile bool delayed_happend;
    48 static volatile bool server_triggered_happend;
    49 static volatile bool interrupt_triggered_happend;
     45static volatile bool release_happened;
     46static volatile bool interrupt_happened;
     47static volatile bool delayed_happened;
     48static volatile bool server_triggered_happened;
     49static volatile bool interrupt_triggered_happened;
    5050
    5151static rtems_id timer [TIMER_COUNT];
     
    9797
    9898  rtems_test_assert(
    99     !release_happend
    100       && !interrupt_happend
    101       && !delayed_happend
    102       && !interrupt_triggered_happend
    103       && !server_triggered_happend
     99    !release_happened
     100      && !interrupt_happened
     101      && !delayed_happened
     102      && !interrupt_triggered_happened
     103      && !server_triggered_happened
    104104  );
    105105
     
    148148  rtems_test_assert(
    149149    obtain_try
    150       && interrupt_happend
    151       && !delayed_happend
    152       && !interrupt_triggered_happend
    153       && !server_triggered_happend
     150      && interrupt_happened
     151      && !delayed_happened
     152      && !interrupt_triggered_happened
     153      && !server_triggered_happened
    154154  );
    155155
     
    179179  directive_failed_with_level(sc, "release", 1);
    180180
    181   release_happend = true;
     181  release_happened = true;
    182182}
    183183
     
    192192  rtems_test_assert(
    193193    obtain_done
    194       && release_happend
    195       && interrupt_happend
    196       && !server_triggered_happend
    197   );
    198 
    199   interrupt_triggered_happend = true;
     194      && release_happened
     195      && interrupt_happened
     196      && !server_triggered_happened
     197  );
     198
     199  interrupt_triggered_happened = true;
    200200}
    201201
     
    209209    obtain_try
    210210      && !obtain_done
    211       && !release_happend
    212       && !delayed_happend
    213       && !interrupt_triggered_happend
    214       && !server_triggered_happend
     211      && !release_happened
     212      && !delayed_happened
     213      && !interrupt_triggered_happened
     214      && !server_triggered_happened
    215215  );
    216216
     
    223223  directive_failed_with_level(sc, "rtems_timer_server_fire_after", -1);
    224224
    225   interrupt_happend = true;
     225  interrupt_happened = true;
    226226}
    227227
     
    232232  rtems_test_assert(
    233233    obtain_done
    234       && release_happend
    235       && interrupt_happend
    236       && delayed_happend
    237       && interrupt_triggered_happend
    238   );
    239 
    240   server_triggered_happend = true;
     234      && release_happened
     235      && interrupt_happened
     236      && delayed_happened
     237      && interrupt_triggered_happened
     238  );
     239
     240  server_triggered_happened = true;
    241241}
    242242
     
    249249  rtems_test_assert(
    250250    obtain_done
    251       && release_happend
    252       && interrupt_happend
    253       && !server_triggered_happend
     251      && release_happened
     252      && interrupt_happened
     253      && !server_triggered_happened
    254254  );
    255255
     
    262262  directive_failed(sc, "rtems_timer_server_fire_after");
    263263
    264   delayed_happend = true;
     264  delayed_happened = true;
    265265}
    266266
     
    271271  obtain_try = false;
    272272  obtain_done = false;
    273   release_happend = false;
    274   interrupt_happend = false;
    275   delayed_happend = false;
    276   interrupt_triggered_happend = false;
    277   server_triggered_happend = false;
     273  release_happened = false;
     274  interrupt_happened = false;
     275  delayed_happened = false;
     276  interrupt_triggered_happened = false;
     277  server_triggered_happened = false;
    278278
    279279  /* Synchronize with tick */
     
    339339    rtems_test_assert(
    340340      obtain_try
    341         && interrupt_happend
    342         && !delayed_happend
    343         && !interrupt_triggered_happend
    344         && !server_triggered_happend
     341        && interrupt_happened
     342        && !delayed_happened
     343        && !interrupt_triggered_happened
     344        && !server_triggered_happened
    345345    );
    346346
     
    348348    directive_failed(sc, "rtems_region_return_segment");
    349349
    350     release_happend = true;
     350    release_happened = true;
    351351
    352352    sc = rtems_task_wake_after(T6 - T4);
     
    358358  rtems_test_assert(
    359359    obtain_done
    360       && interrupt_happend
    361       && release_happend
    362       && delayed_happend
    363       && interrupt_triggered_happend
    364       && server_triggered_happend
     360      && interrupt_happened
     361      && release_happened
     362      && delayed_happened
     363      && interrupt_triggered_happened
     364      && server_triggered_happened
    365365  );
    366366}
     
    369369{
    370370  rtems_status_code sc = RTEMS_SUCCESSFUL;
    371   char region_area [128];
     371  char region_area [128] CPU_STRUCTURE_ALIGNMENT;
    372372  enum resource_type rt = SEMAPHORE;
    373373  void *new_region_item = NULL;
Note: See TracChangeset for help on using the changeset viewer.