summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2006-11-20 23:18:45 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2006-11-20 23:18:45 +0000
commitc338ae2b6b6a3cf00b452de1525beac5a5660a52 (patch)
tree46dd2797ae9be3f6847aac9f99396a334834d82c /testsuites
parent2006-11-20 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-c338ae2b6b6a3cf00b452de1525beac5a5660a52.tar.bz2
2006-11-20 Joel Sherrill <joel@OARcorp.com>
* sp27/init.c, sp27/sp27.scn: Correct configured number of semaphores and make output more compliant with other tests.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/sptests/ChangeLog5
-rw-r--r--testsuites/sptests/sp27/init.c12
-rw-r--r--testsuites/sptests/sp27/sp27.scn6
3 files changed, 18 insertions, 5 deletions
diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog
index b8d981c7ae..1c3d5aeae4 100644
--- a/testsuites/sptests/ChangeLog
+++ b/testsuites/sptests/ChangeLog
@@ -1,3 +1,8 @@
+2006-11-20 Joel Sherrill <joel@OARcorp.com>
+
+ * sp27/init.c, sp27/sp27.scn: Correct configured number of semaphores
+ and make output more compliant with other tests.
+
2006-11-17 Joel Sherrill <joel@OARcorp.com>
* sp09/screen12.c, sp16/task2.c, sp16/task3.c: Ensure tests generate
diff --git a/testsuites/sptests/sp27/init.c b/testsuites/sptests/sp27/init.c
index e514f686a9..d617fbf850 100644
--- a/testsuites/sptests/sp27/init.c
+++ b/testsuites/sptests/sp27/init.c
@@ -14,6 +14,7 @@ rtems_task Init (rtems_task_argument argument);
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
#define CONFIGURE_MAXIMUM_TASKS 6
+#define CONFIGURE_MAXIMUM_SEMAPHORES 1
#define CONFIGURE_MICROSECONDS_PER_TICK 52429
@@ -76,11 +77,14 @@ Init (rtems_task_argument ignored)
int pass, i;
rtems_status_code sc;
- puts("**** Semaphore flush test ****");
+ puts( "\n\n*** TEST 27 ***" );
+ puts("Testing semaphore flush");
sc = rtems_semaphore_create (
rtems_build_name ('S', 'E', 'M', 'F'),
0,
- RTEMS_LOCAL|RTEMS_BINARY_SEMAPHORE|RTEMS_NO_INHERIT_PRIORITY|RTEMS_NO_PRIORITY_CEILING|RTEMS_FIFO,
+ RTEMS_LOCAL|
+ RTEMS_BINARY_SEMAPHORE|RTEMS_NO_INHERIT_PRIORITY|
+ RTEMS_NO_PRIORITY_CEILING|RTEMS_FIFO,
0,
&semaphore);
if (sc != RTEMS_SUCCESSFUL) {
@@ -101,6 +105,8 @@ Init (rtems_task_argument ignored)
exit (1);
}
}
- puts ("**** Semaphore flush test succeeded ****");
+ printf ("Flushed all waiting tasks\n", NTASK );
+ puts( "*** END OF TEST 27 ***" );
+
exit (1);
}
diff --git a/testsuites/sptests/sp27/sp27.scn b/testsuites/sptests/sp27/sp27.scn
index 7c1c36e95e..7b914bf614 100644
--- a/testsuites/sptests/sp27/sp27.scn
+++ b/testsuites/sptests/sp27/sp27.scn
@@ -1,2 +1,4 @@
-**** Semaphore flush test ****
-**** Semaphore flush test succeeded ****
+*** TEST 27 ***
+Testing semaphore flush
+Flushed all waiting tasks
+*** END OF TEST 27 ***