summaryrefslogtreecommitdiffstats
path: root/c/src/tests/samples/unlimited/test1.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2003-01-03 22:55:54 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2003-01-03 22:55:54 +0000
commit7ab11c06b41c17dedd1f1255d3fee9112841b878 (patch)
tree6713448a9db54e90eef9556e04d775898d79b37a /c/src/tests/samples/unlimited/test1.c
parent0f9e7f9670cf6c36cf34b4ad5e18e8d7ee0244a8 (diff)
downloadrtems-7ab11c06b41c17dedd1f1255d3fee9112841b878.tar.bz2
2003-01-03 Joel Sherrill <joel@OARcorp.com>
* unlimited/system.h, unlimited/test1.c: Backed off previous modification as it does not compile.
Diffstat (limited to 'c/src/tests/samples/unlimited/test1.c')
-rw-r--r--c/src/tests/samples/unlimited/test1.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/c/src/tests/samples/unlimited/test1.c b/c/src/tests/samples/unlimited/test1.c
index a441b9953c..5b13c301de 100644
--- a/c/src/tests/samples/unlimited/test1.c
+++ b/c/src/tests/samples/unlimited/test1.c
@@ -27,7 +27,6 @@ void test1()
boolean auto_extend;
rtems_status_code result;
rtems_unsigned32 task_count = 0;
- rtems_unsigned32 expected_count;
Objects_Information *the_information;
char c1 = 'a';
@@ -46,8 +45,7 @@ void test1()
_Objects_Information_table[OBJECTS_CLASSIC_API][OBJECTS_RTEMS_TASKS];
auto_extend = the_information->auto_extend;
the_information->auto_extend = FALSE;
- expected_count = the_information->inactive;
-
+
while (task_count < MAX_TASKS)
{
rtems_name name;
@@ -88,7 +86,7 @@ void test1()
if (task_count >= MAX_TASKS)
printf( "\nMAX_TASKS too small for work-space size, please make larger !!\n\n" );
- if (task_count != expected_count) {
+ if (task_count != (TASK_ALLOCATION_SIZE - 1)) {
printf( " FAIL1 : the number of tasks does not equal the expected size -\n"
" task created = %i, required number = %i\n",
task_count, TASK_ALLOCATION_SIZE);
@@ -101,3 +99,8 @@ void test1()
printf( " TEST1 : completed\n" );
}
+
+
+
+
+