summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-07-01 22:13:03 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-07-01 22:13:03 +0000
commit35290c995bbcff919e7516dd0850e3ffbc720782 (patch)
tree0c6eef68c4d0ce20b2d345fbb4c5238a1b120d7f /testsuites
parent21bbb925a964b9476b9e69ac2dcb87529cc95fc6 (diff)
downloadrtems-35290c995bbcff919e7516dd0850e3ffbc720782.tar.bz2
2002-07-01 Joel Sherrill <joel@OARcorp.com>
* unlimited/test1.c: Corrected use of _Objects_Information_table now that it is a two dimensional array based upon API and class.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/samples/ChangeLog5
-rw-r--r--testsuites/samples/unlimited/test1.c9
2 files changed, 11 insertions, 3 deletions
diff --git a/testsuites/samples/ChangeLog b/testsuites/samples/ChangeLog
index ba97805d34..be14077a9c 100644
--- a/testsuites/samples/ChangeLog
+++ b/testsuites/samples/ChangeLog
@@ -1,3 +1,8 @@
+2002-07-01 Joel Sherrill <joel@OARcorp.com>
+
+ * unlimited/test1.c: Corrected use of _Objects_Information_table
+ now that it is a two dimensional array based upon API and class.
+
2002-04-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* base_sp/apptask.c: Include <stdlib.h>.
diff --git a/testsuites/samples/unlimited/test1.c b/testsuites/samples/unlimited/test1.c
index 130d62738f..5b13c301de 100644
--- a/testsuites/samples/unlimited/test1.c
+++ b/testsuites/samples/unlimited/test1.c
@@ -27,6 +27,7 @@ void test1()
boolean auto_extend;
rtems_status_code result;
rtems_unsigned32 task_count = 0;
+ Objects_Information *the_information;
char c1 = 'a';
char c2 = 'a';
@@ -40,8 +41,10 @@ void test1()
* saves having another test.
*/
- auto_extend = _Objects_Information_table[OBJECTS_RTEMS_TASKS]->auto_extend;
- _Objects_Information_table[OBJECTS_RTEMS_TASKS]->auto_extend = FALSE;
+ the_information =
+ _Objects_Information_table[OBJECTS_CLASSIC_API][OBJECTS_RTEMS_TASKS];
+ auto_extend = the_information->auto_extend;
+ the_information->auto_extend = FALSE;
while (task_count < MAX_TASKS)
{
@@ -92,7 +95,7 @@ void test1()
destory_all_tasks("TEST1");
- _Objects_Information_table[OBJECTS_RTEMS_TASKS]->auto_extend = auto_extend;
+ the_information->auto_extend = auto_extend;
printf( " TEST1 : completed\n" );
}