Index: testsuites/sptests/ChangeLog
===================================================================
--- testsuites/sptests/ChangeLog	(revision 64a3d8bb573b09bd06557202af7851f5877d19d9)
+++ testsuites/sptests/ChangeLog	(revision d05ec0f77313dc15ff4f4253441d56a4ce101530)
@@ -1,2 +1,9 @@
+2009-10-04	Joel Sherrill <joel.sherrill@oarcorp.com>
+
+	* sp07/init.c, sp07/sp07.scn, sp09/init.c, sp09/screen01.c,
+	sp09/sp09.scn, sp28/init.c, sp62/init.c, sp62/sp62.scn, sp64/init.c,
+	sp64/sp64.scn: Add more test cases highlighted on SPARC at -O2, x86
+	at -Os and m68k at -Os. Fix typos.
+
 2009-10-02	Ralf CorsÃ©pius <ralf.corsepius@rtems.org>
 
Index: testsuites/sptests/sp07/init.c
===================================================================
--- testsuites/sptests/sp07/init.c	(revision 64a3d8bb573b09bd06557202af7851f5877d19d9)
+++ testsuites/sptests/sp07/init.c	(revision d05ec0f77313dc15ff4f4253441d56a4ce101530)
@@ -1,15 +1,3 @@
-/*  Init
- *
- *  This routine is the initialization task for this test program.
- *  It is a user initialization task and has the responsibility for creating
- *  and starting the tasks that make up the test.  If the time of day
- *  clock is required for the test, it should also be set to a known
- *  value by this function.
- *
- *  Input parameters:
- *    argument - task argument
- *
- *  Output parameters:  NONE
- *
+/*
  *  COPYRIGHT (c) 1989-2009.
  *  On-Line Applications Research Corporation (OAR).
@@ -172,7 +160,12 @@
   buffered_io_flush();
 
+  status = rtems_task_set_note( rtems_task_self(), RTEMS_NOTEPAD_4, 32 );
+  directive_failed( status, "task_set_node of Self id" );
+  printf( "INIT - rtems_task_set_note - set my (id) RTEMS_NOTEPAD_4 " );
+  puts  ( "to TA1's priority: 04" );
+
   status = rtems_task_set_note( RTEMS_SELF, RTEMS_NOTEPAD_4, 32 );
-  directive_failed( status, "task_set_node of Self" );
-  printf( "INIT - rtems_task_set_note - set my RTEMS_NOTEPAD_4 " );
+  directive_failed( status, "task_set_node of Self 0" );
+  printf( "INIT - rtems_task_set_note - set my (SELF) RTEMS_NOTEPAD_4 " );
   puts  ( "to TA1's priority: 04" );
 
Index: testsuites/sptests/sp07/sp07.scn
===================================================================
--- testsuites/sptests/sp07/sp07.scn	(revision 64a3d8bb573b09bd06557202af7851f5877d19d9)
+++ testsuites/sptests/sp07/sp07.scn	(revision d05ec0f77313dc15ff4f4253441d56a4ce101530)
@@ -19,5 +19,6 @@
 TASK_START - TA4  - started
 TASK_RESTART - TA3  - restarted
-INIT - rtems_task_set_note - set my RTEMS_NOTEPAD_4 to TA1's priority: 04
+INIT - rtems_task_set_note - set my (id) RTEMS_NOTEPAD_4 to TA1's priority: 04
+INIT - rtems_task_set_note - set my (SELF) RTEMS_NOTEPAD_4 to TA1's priority: 04
 INIT - rtems_task_set_note - set TA1's RTEMS_NOTEPAD_8 to TA1's priority: 04
 INIT - rtems_task_set_note - set TA2's RTEMS_NOTEPAD_8 to TA2's priority: 04
Index: testsuites/sptests/sp09/init.c
===================================================================
--- testsuites/sptests/sp09/init.c	(revision 64a3d8bb573b09bd06557202af7851f5877d19d9)
+++ testsuites/sptests/sp09/init.c	(revision d05ec0f77313dc15ff4f4253441d56a4ce101530)
@@ -1,16 +1,4 @@
-/*  Init
- *
- *  This routine is the initialization task for this test program.
- *  It is a user initialization task and has the responsibility for creating
- *  and starting the tasks that make up the test.  If the time of day
- *  clock is required for the test, it should also be set to a known
- *  value by this function.
- *
- *  Input parameters:
- *    argument - task argument
- *
- *  Output parameters:  NONE
- *
- *  COPYRIGHT (c) 1989-1999.
+/*
+ *  COPYRIGHT (c) 1989-2009.
  *  On-Line Applications Research Corporation (OAR).
  *
@@ -61,4 +49,5 @@
   Period_name[ 1 ]     =  rtems_build_name( 'T', 'M', '1', ' ' );
 
+  /* priority of 0 error */
   status = rtems_task_create(
      Task_name[1],
@@ -74,5 +63,23 @@
     "rtems_task_create with illegal priority"
   );
-  puts( "INIT - rtems_task_create - RTEMS_INVALID_PRIORITY" );
+  puts( "INIT - rtems_task_create - priority of 0 - RTEMS_INVALID_PRIORITY" );
+
+  /* priority > 255 error */
+  status = rtems_task_create(
+     Task_name[1],
+     257,
+     RTEMS_MINIMUM_STACK_SIZE,
+     RTEMS_DEFAULT_MODES,
+     RTEMS_DEFAULT_ATTRIBUTES,
+     &Task_id[ 1 ]
+  );
+  fatal_directive_status(
+    status,
+    RTEMS_INVALID_PRIORITY,
+    "rtems_task_create with illegal priority"
+  );
+  puts(
+    "INIT - rtems_task_create - priority too high - RTEMS_INVALID_PRIORITY"
+  );
 
   status = rtems_task_create(
Index: testsuites/sptests/sp09/screen01.c
===================================================================
--- testsuites/sptests/sp09/screen01.c	(revision 64a3d8bb573b09bd06557202af7851f5877d19d9)
+++ testsuites/sptests/sp09/screen01.c	(revision d05ec0f77313dc15ff4f4253441d56a4ce101530)
@@ -2,8 +2,4 @@
  *
  *  This routine generates error screen 1 for test 9.
- *
- *  Input parameters:  NONE
- *
- *  Output parameters:  NONE
  *
  *  COPYRIGHT (c) 1989-2009.
@@ -27,4 +23,14 @@
   rtems_status_code   status;
 
+  /* bad Id */
+  status = rtems_task_is_suspended( 100 );
+  fatal_directive_status(
+    status,
+    RTEMS_INVALID_ID,
+    "rtems_task_set_priority with illegal id"
+  );
+  puts( "TA1 - rtems_task_is_suspended - RTEMS_INVALID_ID" );
+
+  /* bad Id */
   status = rtems_task_delete( 100 );
   fatal_directive_status(
Index: testsuites/sptests/sp09/sp09.scn
===================================================================
--- testsuites/sptests/sp09/sp09.scn	(revision 64a3d8bb573b09bd06557202af7851f5877d19d9)
+++ testsuites/sptests/sp09/sp09.scn	(revision d05ec0f77313dc15ff4f4253441d56a4ce101530)
@@ -1,5 +1,7 @@
 *** TEST 9 ***
-INIT - rtems_task_create - RTEMS_INVALID_PRIORITY
+INIT - rtems_task_create - priority of 0 - RTEMS_INVALID_PRIORITY
+INIT - rtems_task_create - priority too high - RTEMS_INVALID_PRIORITY
 INIT - rtems_task_restart - RTEMS_INCORRECT_STATE
+TA1 - rtems_task_is_suspended - RTEMS_INVALID_ID
 TA1 - rtems_task_delete - RTEMS_INVALID_ID
 TA1 - rtems_task_get_note - RTEMS_INVALID_ADDRESS
Index: testsuites/sptests/sp28/init.c
===================================================================
--- testsuites/sptests/sp28/init.c	(revision 64a3d8bb573b09bd06557202af7851f5877d19d9)
+++ testsuites/sptests/sp28/init.c	(revision d05ec0f77313dc15ff4f4253441d56a4ce101530)
@@ -120,5 +120,5 @@
    */
   puts( "task variable add - NULL pointer - RTEMS_INVALID_ADDRESS" );
-  sc = rtems_task_variable_get(RTEMS_SELF, NULL, NULL );
+  sc = rtems_task_variable_add(RTEMS_SELF, NULL, NULL );
   fatal_directive_status( sc, RTEMS_INVALID_ADDRESS, "add NULL pointer" );
 
Index: testsuites/sptests/sp62/init.c
===================================================================
--- testsuites/sptests/sp62/init.c	(revision 64a3d8bb573b09bd06557202af7851f5877d19d9)
+++ testsuites/sptests/sp62/init.c	(revision d05ec0f77313dc15ff4f4253441d56a4ce101530)
@@ -51,4 +51,5 @@
   void              *segment_address_1;
   intptr_t           old_size;
+  size_t             size;
 
   puts( "\n\n*** TEST 62 ***" );
@@ -105,8 +106,32 @@
   if ( case_hit ) {
     puts( "Init - successfully resized and unblocked a task" );
-    puts( "*** END OF TEST 62 ***" );
-  } else
+  } else {
     puts( "Init - failed to resize and unblock a task" );
+    rtems_test_exit(0);
+  }
 
+  /*
+   *  Now resize and take all of memory so there is no need to
+   *  process any blocked tasks waiting for memory.
+   */
+
+  size = sizeof(Region_Memory);
+  while (1) {
+    sc = rtems_region_resize_segment(
+      Region, segment_address_1, size, &old_size);
+    if ( sc == RTEMS_UNSATISFIED ) {
+      size --;
+      if ( size )
+        continue;
+    }
+    directive_failed( sc, "rtems_region_resize_segment" );
+    if ( sc == RTEMS_SUCCESSFUL )
+      break;
+
+  }
+  if ( sc == RTEMS_SUCCESSFUL && size != 0 )
+    puts( "Init - resized to all of available memory" );
+
+  puts( "*** END OF TEST 62 ***" );
   rtems_test_exit(0);
 }
Index: testsuites/sptests/sp62/sp62.scn
===================================================================
--- testsuites/sptests/sp62/sp62.scn	(revision 64a3d8bb573b09bd06557202af7851f5877d19d9)
+++ testsuites/sptests/sp62/sp62.scn	(revision d05ec0f77313dc15ff4f4253441d56a4ce101530)
@@ -9,3 +9,4 @@
 Blocker - Got memory after resize
 Init - successfully resized and unblocked a task
+Init - resized to all of available memory
 *** END OF TEST 62 ***
Index: testsuites/sptests/sp64/init.c
===================================================================
--- testsuites/sptests/sp64/init.c	(revision 64a3d8bb573b09bd06557202af7851f5877d19d9)
+++ testsuites/sptests/sp64/init.c	(revision d05ec0f77313dc15ff4f4253441d56a4ce101530)
@@ -145,5 +145,5 @@
   #endif
 
-  puts( "*** END OF TEST 63 ***" );
+  puts( "*** END OF TEST 64 ***" );
   rtems_test_exit(0);
 }
Index: testsuites/sptests/sp64/sp64.scn
===================================================================
--- testsuites/sptests/sp64/sp64.scn	(revision 64a3d8bb573b09bd06557202af7851f5877d19d9)
+++ testsuites/sptests/sp64/sp64.scn	(revision d05ec0f77313dc15ff4f4253441d56a4ce101530)
@@ -4,3 +4,3 @@
 Init - rtems_region_create - auto-extend - RTEMS_UNSATISFIED
 Init - rtems_region_delete - OK
-*** END OF TEST 63 ***
+*** END OF TEST 64 ***
