summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp44/sp44.scn
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-05 13:10:26 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-05 13:10:26 +0000
commitcccd632c8de2abfffbabaf2b25e0e03366618758 (patch)
tree18dbacd93f2da02b14eb4bb40d4121e00bb86fb5 /testsuites/sptests/sp44/sp44.scn
parent2008-08-05 Xudong Guan <xudong.guan@criticalsoftware.com> (diff)
downloadrtems-cccd632c8de2abfffbabaf2b25e0e03366618758.tar.bz2
2008-08-05 Xudong Guan <xudong.guan@criticalsoftware.com>
PR 1212/cpukit * Makefile.am, configure.ac: Time slicing will not happen if the task mode is changed from a non-timeslicing mode to timeslicing mode if it is done by the executing thread (e.g. in its task body). This change includes sp44 to demonstrate the problem and verify the correction. * sp44/.cvsignore, sp44/Makefile.am, sp44/init.c, sp44/sp44.scn: New files.
Diffstat (limited to '')
-rw-r--r--testsuites/sptests/sp44/sp44.scn21
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuites/sptests/sp44/sp44.scn b/testsuites/sptests/sp44/sp44.scn
new file mode 100644
index 0000000000..30ed1242a9
--- /dev/null
+++ b/testsuites/sptests/sp44/sp44.scn
@@ -0,0 +1,21 @@
+*** SP44 TEST ***
+Task #0's turn. Now setting turn to 1
+Task #1's turn. Now setting turn to 0
+Task #0's turn. Now setting turn to 1
+Task #1's turn. Now setting turn to 0
+Task #0's turn. Now setting turn to 1
+Task #1's turn. Now setting turn to 0
+Task #0's turn. Now setting turn to 1
+Task #1's turn. Now setting turn to 0
+Task #0's turn. Now setting turn to 1
+Task #1's turn. Now setting turn to 0
+Task #0's turn. Now setting turn to 1
+Task #1's turn. Now setting turn to 0
+Task #0's turn. Now setting turn to 1
+Task #1's turn. Now setting turn to 0
+Task #0's turn. Now setting turn to 1
+Task #1's turn. Now setting turn to 0
+Task #0's turn. Now setting turn to 1
+Task #1's turn. Now setting turn to 0
+Task #0's turn. Now setting turn to 1
+*** END OF SP44 TEST ***