source: rtems-schedsim/schedsim/shell/schedsim_priority/scenarios/script05.scen @ d1f9281

Last change on this file since d1f9281 was 9077d3c, checked in by Joel Sherrill <joel.sherrill@…>, on 05/17/11 at 19:31:08

2011-05-17 Joel Sherrill <joel.sherrill@…>

  • Makefile.am: Merge and update code. Simulators for Deterministic Priority and SMP Simple Schedulers now work.
  • ChangeLog?, smp_stub.c, scenarios/script01.expected, scenarios/script01.output, scenarios/script01.scen, scenarios/script02.expected, scenarios/script02.output, scenarios/script02.scen, scenarios/script03.expected, scenarios/script03.output, scenarios/script03.scen, scenarios/script04.expected, scenarios/script04.output, scenarios/script04.scen, scenarios/script05.expected, scenarios/script05.output, scenarios/script05.scen, scenarios/script06.expected, scenarios/script06.output, scenarios/script06.scen: New files.
  • scenarios/script01, scenarios/script02, scenarios/script03, scenarios/script04, scenarios/script05, scenarios/script06: Removed.
  • Property mode set to 100644
File size: 476 bytes
Line 
1echo "*** TEST 05 ***"
2rtems_init
3echo Create 0x0a010001
4task_create TA1 1
5task_create TA2 2
6task_create TA3 3
7semaphore_create SEM1
8semaphore_obtain SEM1 0
9semaphore_obtain SEM1 0
10semaphore_obtain SEM1 0
11semaphore_flush SEM1
12echo "*** Now back to TA1 to do it differently"
13semaphore_obtain SEM1 0
14semaphore_obtain SEM1 0
15semaphore_release SEM1
16# as TA1
17semaphore_obtain SEM1 0
18semaphore_delete SEM1
19# should preempt
20echo "*** END OF TEST 05 ***"
21exit
22# We will not get here
Note: See TracBrowser for help on using the repository browser.