summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-10-26 02:32:47 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-10-26 02:32:47 +0000
commit2ca64b55eadffbfcc821881dca04680cbb516bb1 (patch)
treeaa33b617296ce14f968cee1de1305aa621271ba2 /c
parentModifications from Erik Ivanenko <erik.ivanenko@utoronto.ca> to add (diff)
downloadrtems-2ca64b55eadffbfcc821881dca04680cbb516bb1.tar.bz2
New ideas on test incorporated.
Diffstat (limited to 'c')
-rw-r--r--c/src/tests/sptests/sp27/TODO26
1 files changed, 17 insertions, 9 deletions
diff --git a/c/src/tests/sptests/sp27/TODO b/c/src/tests/sptests/sp27/TODO
index fd4e98a78e..6602ad252b 100644
--- a/c/src/tests/sptests/sp27/TODO
+++ b/c/src/tests/sptests/sp27/TODO
@@ -2,18 +2,26 @@
# $Id$
#
-This test should be for rtems_semaphore_flush. It will be something like:
+This test will be for rtems_semaphore_flush once it is written.
+
+To avoid scheduling problems in the printout, it would be better to
+have the test program:
+
+volatile int bFlag, cFlag;
TaskA:
- create semaphore with initial count 0
- start taskB and TaskC (Higher priority than taskA, no round-robin)
- print message
- semaphore_flush
+ create semaphore with initial count 0
+ start taskB and TaskC (Higher priority than taskA, no
+round-robin)
+ print bFlag, cFlag (should both be 0)
+ semaphore_flush
+ print bFlag, cFlag (should both be 1)
-TaskB/C:
- obtain semaphore
- print message
- suspend/delete self
+ TaskB/C:
+ obtain semaphore
+ set flag (B or C as appropriate)
+ suspend/delete self
Successful test would show message from both tasks B and C after the
message from task A.
+