change log for rtems (2011-03-11)

rtems-vc at rtems.org rtems-vc at rtems.org
Fri Mar 11 21:10:14 UTC 2011


 *joel*:
2011-03-11	Joel Sherrill <joel.sherrilL at OARcorp.com>

	* sp08/Makefile.am, sp08/init.c, sp08/sp08.scn, sp09/screen07.c,
	sp09/sp09.scn: Improve coverage. Change mode while system not up and
	broadcast a message that is too large.
	* sp08/system.h, sp08/task1.c: Removed.

M  1.440  testsuites/sptests/ChangeLog
M   1.24  testsuites/sptests/sp08/Makefile.am
M   1.14  testsuites/sptests/sp08/init.c
M    1.2  testsuites/sptests/sp08/sp08.scn
R   1.17  testsuites/sptests/sp08/system.h
R   1.10  testsuites/sptests/sp08/task1.c
M   1.24  testsuites/sptests/sp09/screen07.c
M   1.27  testsuites/sptests/sp09/sp09.scn

diff -u rtems/testsuites/sptests/ChangeLog:1.439 rtems/testsuites/sptests/ChangeLog:1.440
--- rtems/testsuites/sptests/ChangeLog:1.439	Fri Mar 11 10:39:27 2011
+++ rtems/testsuites/sptests/ChangeLog	Fri Mar 11 14:26:59 2011
@@ -1,5 +1,12 @@
 2011-03-11	Joel Sherrill <joel.sherrilL at OARcorp.com>
 
+	* sp08/Makefile.am, sp08/init.c, sp08/sp08.scn, sp09/screen07.c,
+	sp09/sp09.scn: Improve coverage. Change mode while system not up and
+	broadcast a message that is too large.
+	* sp08/system.h, sp08/task1.c: Removed.
+
+2011-03-11	Joel Sherrill <joel.sherrilL at OARcorp.com>
+
 	* Makefile.am, configure.ac: Add sp73.  This is a new test designed
 	to improve coverage of the thread yield logic.
 	* sp73/.cvsignore, sp73/Makefile.am, sp73/init.c, sp73/sp73.doc,

diff -u rtems/testsuites/sptests/sp08/Makefile.am:1.23 rtems/testsuites/sptests/sp08/Makefile.am:1.24
--- rtems/testsuites/sptests/sp08/Makefile.am:1.23	Fri Apr  3 07:48:12 2009
+++ rtems/testsuites/sptests/sp08/Makefile.am	Fri Mar 11 14:26:59 2011
@@ -2,10 +2,8 @@
 ## $Id$
 ##
 
-MANAGERS = io semaphore clock
-
 rtems_tests_PROGRAMS = sp08
-sp08_SOURCES = init.c task1.c system.h
+sp08_SOURCES = init.c
 
 dist_rtems_tests_DATA = sp08.scn
 dist_rtems_tests_DATA += sp08.doc
@@ -14,8 +12,6 @@
 include $(top_srcdir)/../automake/compile.am
 include $(top_srcdir)/../automake/leaf.am
 
-sp08_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
-
 AM_CPPFLAGS += -I$(top_srcdir)/../support/include
 
 LINK_OBJS = $(sp08_OBJECTS) $(sp08_LDADD)

diff -u rtems/testsuites/sptests/sp08/init.c:1.13 rtems/testsuites/sptests/sp08/init.c:1.14
--- rtems/testsuites/sptests/sp08/init.c:1.13	Tue Feb 22 01:36:58 2011
+++ rtems/testsuites/sptests/sp08/init.c	Fri Mar 11 14:26:59 2011
@@ -1,17 +1,5 @@
-/*  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-2011.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -25,32 +13,286 @@
 #include "config.h"
 #endif
 
-#define CONFIGURE_INIT
-#include "system.h"
+#include <tmacros.h>
+
+#define PRIxModes_Control 	PRIx32
+#define PRIxrtems_mode		PRIxModes_Control
+
+#define put_mode( _comment, _output_mode ) \
+   printf( "%s %08" PRIxrtems_mode "\n", _comment, _output_mode );
 
 rtems_task Init(
   rtems_task_argument argument
 )
 {
+  rtems_mode        previous_mode;
   rtems_status_code status;
 
   puts( "\n\n*** TEST 8 ***" );
 
-  Task_name[ 1 ] =  rtems_build_name( 'T', 'A', '1', ' ' );
+/* BEGINNING OF RTEMS_ASR */
+
+  status = rtems_task_mode( RTEMS_ASR, RTEMS_ASR_MASK, &previous_mode );
+  directive_failed( status, "rtems_task_mode" );
+  put_mode(
+    "TA1 - rtems_task_mode - RTEMS_ASR                  - previous mode: ",
+    previous_mode
+  );
+
+  status = rtems_task_mode(
+    RTEMS_NO_ASR,
+    RTEMS_ASR_MASK,
+    &previous_mode
+  );
+  directive_failed( status, "rtems_task_mode" );
+  put_mode(
+    "TA1 - rtems_task_mode - RTEMS_NO_ASR               - previous mode: ",
+    previous_mode
+  );
+
+  status = rtems_task_mode(
+    RTEMS_NO_ASR,
+    RTEMS_ASR_MASK,
+    &previous_mode
+  );
+  directive_failed( status, "rtems_task_mode" );
+  put_mode(
+    "TA1 - rtems_task_mode - RTEMS_NO_ASR               - previous mode: ",
+    previous_mode
+  );
+
+  status = rtems_task_mode(
+    RTEMS_ASR,
+    RTEMS_ASR_MASK,
+    &previous_mode
+  );
+  directive_failed( status, "rtems_task_mode" );
+  put_mode(
+    "TA1 - rtems_task_mode - RTEMS_ASR                  - previous mode: ",
+    previous_mode
+  );
+
+/* END OF RTEMS_ASR */
+
+/* BEGINNING OF RTEMS_TIMESLICE */
+
+  status = rtems_task_mode(
+    RTEMS_NO_TIMESLICE,
+    RTEMS_TIMESLICE_MASK,
+    &previous_mode
+  );
+  directive_failed( status, "rtems_task_mode" );
+  put_mode(
+    "TA1 - rtems_task_mode - RTEMS_NO_TIMESLICE         - previous mode: ",
+    previous_mode
+  );
+
+  status = rtems_task_mode(
+    RTEMS_TIMESLICE,
+    RTEMS_TIMESLICE_MASK,
+    &previous_mode
+  );
+  directive_failed( status, "rtems_task_mode" );
+  put_mode(
+    "TA1 - rtems_task_mode - RTEMS_TIMESLICE            - previous mode: ",
+    previous_mode
+  );
+
+  status = rtems_task_mode(
+    RTEMS_TIMESLICE,
+    RTEMS_TIMESLICE_MASK,
+    &previous_mode
+  );
+  directive_failed( status, "rtems_task_mode" );
+  put_mode(
+    "TA1 - rtems_task_mode - RTEMS_TIMESLICE            - previous mode: ",
+    previous_mode
+  );
+
+  status = rtems_task_mode(
+    RTEMS_NO_TIMESLICE,
+    RTEMS_TIMESLICE_MASK,
+    &previous_mode
+  );
+  directive_failed( status, "rtems_task_mode" );
+  put_mode(
+    "TA1 - rtems_task_mode - RTEMS_NO_TIMESLICE         - previous mode: ",
+    previous_mode
+  );
+
+/* END OF RTEMS_TIMESLICE */
+
+/* BEGINNING OF RTEMS_PREEMPT */
+
+  status = rtems_task_mode(
+    RTEMS_PREEMPT,
+    RTEMS_PREEMPT_MASK,
+    &previous_mode
+  );
+  directive_failed( status, "rtems_task_mode" );
+  put_mode(
+    "TA1 - rtems_task_mode - RTEMS_PREEMPT              - previous mode: ",
+    previous_mode
+  );
+
+  status = rtems_task_mode(
+    RTEMS_NO_PREEMPT,
+    RTEMS_PREEMPT_MASK,
+    &previous_mode
+  );
+  directive_failed( status, "rtems_task_mode" );
+  put_mode(
+    "TA1 - rtems_task_mode - RTEMS_NO_PREEMPT           - previous mode: ",
+    previous_mode
+  );
+
+  status = rtems_task_mode(
+    RTEMS_NO_PREEMPT,
+    RTEMS_PREEMPT_MASK,
+    &previous_mode
+  );
+  directive_failed( status, "rtems_task_mode" );
+  put_mode(
+    "TA1 - rtems_task_mode - RTEMS_NO_PREEMPT           - previous mode: ",
+    previous_mode
+  );
+
+  status = rtems_task_mode(
+    RTEMS_PREEMPT,
+    RTEMS_PREEMPT_MASK,
+    &previous_mode
+  );
+  directive_failed( status, "rtems_task_mode" );
+  put_mode(
+    "TA1 - rtems_task_mode - RTEMS_PREEMPT              - previous mode: ",
+    previous_mode
+  );
+
+/* END OF RTEMS_PREEMPT */
+
+/* BEGINNING OF RTEMS_INTERRUPT_LEVEL */
+
+  status = rtems_task_mode(
+    RTEMS_INTERRUPT_LEVEL(3),
+    RTEMS_INTERRUPT_MASK,
+    &previous_mode
+  );
+  directive_failed( status, "rtems_task_mode" );
+  put_mode(
+    "TA1 - rtems_task_mode - RTEMS_INTERRUPT_LEVEL( 3 ) - previous mode: ",
+    previous_mode
+  );
+
+  status = rtems_task_mode(
+    RTEMS_INTERRUPT_LEVEL(5),
+    RTEMS_INTERRUPT_MASK,
+    &previous_mode
+  );
+  directive_failed( status, "rtems_task_mode" );
+  put_mode(
+    "TA1 - rtems_task_mode - RTEMS_INTERRUPT_LEVEL( 5 ) - previous mode: ",
+    previous_mode
+  );
+
+/* END OF RTEMS_INTERRUPT_LEVEL */
+
+/* BEGINNING OF COMBINATIONS */
+
+  status = rtems_task_mode(
+    RTEMS_INTERRUPT_LEVEL(3) | RTEMS_NO_ASR |
+      RTEMS_TIMESLICE | RTEMS_NO_PREEMPT,
+    RTEMS_INTERRUPT_MASK | RTEMS_ASR_MASK |
+      RTEMS_TIMESLICE_MASK | RTEMS_PREEMPT_MASK,
+    &previous_mode
+  );
+  directive_failed( status, "rtems_task_mode" );
+  put_mode(
+    "TA1 - rtems_task_mode - set all modes        - previous mode: ",
+    previous_mode
+  );
+
+  status = rtems_task_mode(
+    RTEMS_INTERRUPT_LEVEL(3) | RTEMS_NO_ASR |
+      RTEMS_TIMESLICE | RTEMS_NO_PREEMPT,
+    RTEMS_INTERRUPT_MASK | RTEMS_ASR_MASK |
+      RTEMS_TIMESLICE_MASK | RTEMS_PREEMPT_MASK,
+    &previous_mode
+  );
+  directive_failed( status, "rtems_task_mode" );
+  put_mode(
+    "TA1 - rtems_task_mode - set all modes        - previous mode: ",
+    previous_mode
+  );
+
+  status = rtems_task_mode(
+    RTEMS_INTERRUPT_LEVEL(0) | RTEMS_ASR | RTEMS_NO_TIMESLICE | RTEMS_PREEMPT,
+    RTEMS_INTERRUPT_MASK | RTEMS_ASR_MASK |
+    RTEMS_TIMESLICE_MASK | RTEMS_PREEMPT_MASK,
+    &previous_mode
+  );
+  directive_failed( status, "rtems_task_mode" );
+  put_mode(
+    "TA1 - rtems_task_mode - clear all modes      - previous mode: ",
+    previous_mode
+  );
+
+/* END OF COMBINATIONS */
+
+/* BEGINNING OF CURRENT MODE */
+
+  status = rtems_task_mode(
+    RTEMS_CURRENT_MODE,
+    RTEMS_CURRENT_MODE,
+    &previous_mode
+  );
+  directive_failed( status, "rtems_task_mode" );
+  put_mode(
+    "TA1 - rtems_task_mode - get current mode     - previous mode: ",
+    previous_mode
+  );
 
-  status = rtems_task_create(
-    Task_name[ 1 ],
-    1,
-    RTEMS_MINIMUM_STACK_SIZE * 2,
-    RTEMS_DEFAULT_MODES,
-    RTEMS_DEFAULT_ATTRIBUTES,
-    &Task_id[ 1 ]
+/* END OF CURRENT MODE */
+
+/* TEST BEING IN A SYSTEM STATE OTHER THAN UP */
+  puts( "TA1 - FORCE system state to before multitasking" );
+  _System_state_Set( SYSTEM_STATE_BEFORE_MULTITASKING );
+
+  puts( "TA1 - enable preemption mode" );
+  status = rtems_task_mode(
+    RTEMS_PREEMPT,
+    RTEMS_PREEMPT_MASK,
+    &previous_mode
+  );
+  directive_failed( status, "rtems_task_mode" );
+  put_mode(
+    "TA1 - rtems_task_mode - RTEMS_PREEMPT              - previous mode: ",
+    previous_mode
+  );
+
+  puts( "TA1 - disable preemption mode" );
+  status = rtems_task_mode(
+    RTEMS_NO_PREEMPT,
+    RTEMS_PREEMPT_MASK,
+    &previous_mode
   );
-  directive_failed( status, "rtems_task_create of TA1" );
+  directive_failed( status, "rtems_task_mode" );
 
-  status = rtems_task_start( Task_id[ 1 ], Task_1, 0 );
-  directive_failed( status, "rtems_task_start of TA1" );
+  puts( "TA1 - Restore system state" );
+  _System_state_Set( SYSTEM_STATE_UP );
 
-  status = rtems_task_delete( RTEMS_SELF );
-  directive_failed( status, "rtems_task_delete of RTEMS_SELF" );
+/* END OF TEST BEING IN A SYSTEM STATE OTHER THAN UP */
+
+  puts( "*** END OF TEST 8 ***" );
+  rtems_test_exit( 0 );
 }
+
+/* configuration information */
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
+
+#define CONFIGURE_MAXIMUM_TASKS             1
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+
+#define CONFIGURE_INIT
+#include <rtems/confdefs.h>
+/* end of file */

diff -u rtems/testsuites/sptests/sp08/sp08.scn:1.1 rtems/testsuites/sptests/sp08/sp08.scn:1.2
--- rtems/testsuites/sptests/sp08/sp08.scn:1.1	Thu May 11 12:38:16 1995
+++ rtems/testsuites/sptests/sp08/sp08.scn	Fri Mar 11 14:26:59 2011
@@ -1,22 +1,36 @@
-*** TEST 8 ***
-TA1 - rtems_task_mode - RTEMS_ASR                  - previous mode:  00000000
-TA1 - rtems_task_mode - RTEMS_NO_ASR               - previous mode:  00000000
-TA1 - rtems_task_mode - RTEMS_NO_ASR               - previous mode:  00000400
-TA1 - rtems_task_mode - RTEMS_ASR                  - previous mode:  00000400
-TA1 - rtems_task_mode - RTEMS_NO_TIMESLICE         - previous mode:  00000000
-TA1 - rtems_task_mode - RTEMS_TIMESLICE            - previous mode:  00000000
-TA1 - rtems_task_mode - RTEMS_TIMESLICE            - previous mode:  00000200
-TA1 - rtems_task_mode - RTEMS_NO_TIMESLICE         - previous mode:  00000200
-TA1 - rtems_task_mode - RTEMS_PREEMPT              - previous mode:  00000000
-TA1 - rtems_task_mode - RTEMS_NO_PREEMPT           - previous mode:  00000000
-TA1 - rtems_task_mode - RTEMS_NO_PREEMPT           - previous mode:  00000100
-TA1 - rtems_task_mode - RTEMS_PREEMPT              - previous mode:  00000100
-TA1 - rtems_task_mode - RTEMS_INTERRUPT_LEVEL( 3 ) - previous mode:  00000000
-TA1 - rtems_task_mode - RTEMS_INTERRUPT_LEVEL( 5 ) - previous mode:  00000003
-TA1 - rtems_task_mode - set all modes        - previous mode:  00000005
-TA1 - rtems_task_mode - set all modes        - previous mode:  00000703
-TA1 - rtems_task_mode - clear all modes      - previous mode:  00000703
-TA1 - rtems_task_mode - get current mode     - previous mode:  00000000
-*** END OF TEST 8 ***
-
-NOTE: The interrupt level lines will be different on CPUs with few levels.
+
+
+*** TEST 8 ***
+TA1 - rtems_task_mode - RTEMS_ASR                  - previous mode:  00000100
+TA1 - rtems_task_mode - RTEMS_NO_ASR               - previous mode:  00000100
+TA1 - rtems_task_mode - RTEMS_NO_ASR               - previous mode:  00000500
+TA1 - rtems_task_mode - RTEMS_ASR                  - previous mode:  00000500
+TA1 - rtems_task_mode - RTEMS_NO_TIMESLICE         - previous mode:  00000100
+TA1 - rtems_task_mode - RTEMS_TIMESLICE            - previous mode:  00000100
+TA1 - rtems_task_mode - RTEMS_TIMESLICE            - previous mode:  00000300
+TA1 - rtems_task_mode - RTEMS_NO_TIMESLICE         - previous mode:  00000300
+TA1 - rtems_task_mode - RTEMS_PREEMPT              - previous mode:  00000100
+TA1 - rtems_task_mode - RTEMS_NO_PREEMPT           - previous mode:  00000000
+TA1 - rtems_task_mode - RTEMS_NO_PREEMPT           - previous mode:  00000100
+TA1 - rtems_task_mode - RTEMS_PREEMPT              - previous mode:  00000100
+TA1 - rtems_task_mode - RTEMS_INTERRUPT_LEVEL( 3 ) - previous mode:  00000000
+TA1 - rtems_task_mode - RTEMS_INTERRUPT_LEVEL( 5 ) - previous mode:  00000000
+TA1 - rtems_task_mode - set all modes        - previous mode:  00000000
+TA1 - rtems_task_mode - set all modes        - previous mode:  00000700
+TA1 - rtems_task_mode - clear all modes      - previous mode:  00000700
+TA1 - rtems_task_mode - get current mode     - previous mode:  00000000
+TA1 - FORCE system state to before multitasking
+TA1 - enable preemption mode
+TA1 - rtems_task_mode - RTEMS_PREEMPT              - previous mode:  00000000
+TA1 - disable preemption mode
+TA1 - Restore system state
+*** END OF TEST 8 ***
+0  size = 0x000404f6 .
+not load section .debug_frame: addr = 0x00000000  size = 0x00004820 .
+not load section .debug_str: addr = 0x00000000  size = 0x0000f673 .
+not load section .debug_loc: addr = 0x00000000  size = 0x0001c59c .
+not load section .debug_pubtypes: addr = 0x00000000  size = 0x0005eac5 .
+not load section .debug_ranges: addr = 0x00000000  size = 0x000015e0 .
+not load section .ARM.attributes: addr = 0x00000000  size = 0x00000010 .
+call ARMul_InitSymTable,kernel filename is sp08.ralf. 
+start addr is set to 0x00000058 by exec file.

diff -u rtems/testsuites/sptests/sp09/screen07.c:1.23 rtems/testsuites/sptests/sp09/screen07.c:1.24
--- rtems/testsuites/sptests/sp09/screen07.c:1.23	Tue Feb 22 01:36:58 2011
+++ rtems/testsuites/sptests/sp09/screen07.c	Fri Mar 11 14:26:59 2011
@@ -349,15 +349,30 @@
   );
   puts( "TA1 - rtems_message_queue_urgent - RTEMS_INVALID_ID" );
 
-  status = rtems_message_queue_broadcast( Queue_id[ 1 ], NULL, MESSAGE_SIZE, &count );
+  status = rtems_message_queue_broadcast(
+     Queue_id[ 1 ], NULL, MESSAGE_SIZE, &count );
   fatal_directive_status(
     status,
     RTEMS_INVALID_ADDRESS,
     "rtems_message_queue_broadcast with NULL count"
   );
-  puts( "TA1 - rtems_message_queue_broadcast - NULL buffer - RTEMS_INVALID_ADDRESS" );
+  puts(
+    "TA1 - rtems_message_queue_broadcast - NULL buffer - RTEMS_INVALID_ADDRESS"
+  );
+
+  status = rtems_message_queue_broadcast(
+     Queue_id[ 1 ], buffer, MESSAGE_SIZE + 1, &count );
+  fatal_directive_status(
+    status,
+    RTEMS_INVALID_SIZE,
+    "rtems_message_queue_broadcast with too large"
+  );
+  puts(
+    "TA1 - rtems_message_queue_broadcast - too large - RTEMS_INVALID_SIZE"
+  );
 
-  status = rtems_message_queue_broadcast( Queue_id[ 1 ], buffer, MESSAGE_SIZE, NULL );
+  status = rtems_message_queue_broadcast(
+      Queue_id[ 1 ], buffer, MESSAGE_SIZE, NULL );
   fatal_directive_status(
     status,
     RTEMS_INVALID_ADDRESS,

diff -u rtems/testsuites/sptests/sp09/sp09.scn:1.26 rtems/testsuites/sptests/sp09/sp09.scn:1.27
--- rtems/testsuites/sptests/sp09/sp09.scn:1.26	Mon Aug  9 03:46:56 2010
+++ rtems/testsuites/sptests/sp09/sp09.scn	Fri Mar 11 14:26:59 2011
@@ -151,6 +151,7 @@
 TA1 - rtems_message_queue_urgent - NULL buffer - RTEMS_INVALID_ADDRESS
 TA1 - rtems_message_queue_urgent - RTEMS_INVALID_ID
 TA1 - rtems_message_queue_broadcast - NULL buffer - RTEMS_INVALID_ADDRESS
+TA1 - rtems_message_queue_broadcast - too large - RTEMS_INVALID_SIZE
 TA1 - rtems_message_queue_broadcast - NULL count - RTEMS_INVALID_ADDRESS
 <pause - screen 8>
 TA1 - rtems_message_queue_delete - Q 1 - RTEMS_SUCCESSFUL
@@ -174,9 +175,8 @@
 TA3 - rtems_message_queue_receive - woke up with RTEMS_OBJECT_WAS_DELETED
 TA3 - rtems_task_delete - delete self - RTEMS_SUCCESSFUL
 <pause - screen 9>
-TA1 - rtems_interrupt_catch - RTEMS_INVALID_NUMBER
-TA1 - rtems_interrupt_catch - bad handler RTEMS_INVALID_ADDRESS
-TA1 - rtems_interrupt_catch - old isr RTEMS_INVALID_ADDRESS
+TA1 - rtems_interrupt_catch - bad handler RTEMS_INVALID_ADDRESS -- SKIPPED
+TA1 - rtems_interrupt_catch - old isr RTEMS_INVALID_ADDRESS - SKIPPED
 TA1 - rtems_signal_send - RTEMS_INVALID_ID
 TA1 - rtems_signal_send - RTEMS_INVALID_NUMBER
 TA1 - rtems_signal_send - RTEMS_NOT_DEFINED


 *joel*:
2011-03-11	Joel Sherrill <joel.sherrilL at OARcorp.com>

	* sp08/sp08.scn: Convert to UNIX CR/LF.

M  1.441  testsuites/sptests/ChangeLog
M    1.3  testsuites/sptests/sp08/sp08.scn

diff -u rtems/testsuites/sptests/ChangeLog:1.440 rtems/testsuites/sptests/ChangeLog:1.441
--- rtems/testsuites/sptests/ChangeLog:1.440	Fri Mar 11 14:26:59 2011
+++ rtems/testsuites/sptests/ChangeLog	Fri Mar 11 14:28:03 2011
@@ -1,5 +1,9 @@
 2011-03-11	Joel Sherrill <joel.sherrilL at OARcorp.com>
 
+	* sp08/sp08.scn: Convert to UNIX CR/LF.
+
+2011-03-11	Joel Sherrill <joel.sherrilL at OARcorp.com>
+
 	* sp08/Makefile.am, sp08/init.c, sp08/sp08.scn, sp09/screen07.c,
 	sp09/sp09.scn: Improve coverage. Change mode while system not up and
 	broadcast a message that is too large.

diff -u rtems/testsuites/sptests/sp08/sp08.scn:1.2 rtems/testsuites/sptests/sp08/sp08.scn:1.3
--- rtems/testsuites/sptests/sp08/sp08.scn:1.2	Fri Mar 11 14:26:59 2011
+++ rtems/testsuites/sptests/sp08/sp08.scn	Fri Mar 11 14:28:03 2011
@@ -1,30 +1,28 @@
-
-
-*** TEST 8 ***
-TA1 - rtems_task_mode - RTEMS_ASR                  - previous mode:  00000100
-TA1 - rtems_task_mode - RTEMS_NO_ASR               - previous mode:  00000100
-TA1 - rtems_task_mode - RTEMS_NO_ASR               - previous mode:  00000500
-TA1 - rtems_task_mode - RTEMS_ASR                  - previous mode:  00000500
-TA1 - rtems_task_mode - RTEMS_NO_TIMESLICE         - previous mode:  00000100
-TA1 - rtems_task_mode - RTEMS_TIMESLICE            - previous mode:  00000100
-TA1 - rtems_task_mode - RTEMS_TIMESLICE            - previous mode:  00000300
-TA1 - rtems_task_mode - RTEMS_NO_TIMESLICE         - previous mode:  00000300
-TA1 - rtems_task_mode - RTEMS_PREEMPT              - previous mode:  00000100
-TA1 - rtems_task_mode - RTEMS_NO_PREEMPT           - previous mode:  00000000
-TA1 - rtems_task_mode - RTEMS_NO_PREEMPT           - previous mode:  00000100
-TA1 - rtems_task_mode - RTEMS_PREEMPT              - previous mode:  00000100
-TA1 - rtems_task_mode - RTEMS_INTERRUPT_LEVEL( 3 ) - previous mode:  00000000
-TA1 - rtems_task_mode - RTEMS_INTERRUPT_LEVEL( 5 ) - previous mode:  00000000
-TA1 - rtems_task_mode - set all modes        - previous mode:  00000000
-TA1 - rtems_task_mode - set all modes        - previous mode:  00000700
-TA1 - rtems_task_mode - clear all modes      - previous mode:  00000700
-TA1 - rtems_task_mode - get current mode     - previous mode:  00000000
-TA1 - FORCE system state to before multitasking
-TA1 - enable preemption mode
-TA1 - rtems_task_mode - RTEMS_PREEMPT              - previous mode:  00000000
-TA1 - disable preemption mode
-TA1 - Restore system state
-*** END OF TEST 8 ***
+*** TEST 8 ***
+TA1 - rtems_task_mode - RTEMS_ASR                  - previous mode:  00000100
+TA1 - rtems_task_mode - RTEMS_NO_ASR               - previous mode:  00000100
+TA1 - rtems_task_mode - RTEMS_NO_ASR               - previous mode:  00000500
+TA1 - rtems_task_mode - RTEMS_ASR                  - previous mode:  00000500
+TA1 - rtems_task_mode - RTEMS_NO_TIMESLICE         - previous mode:  00000100
+TA1 - rtems_task_mode - RTEMS_TIMESLICE            - previous mode:  00000100
+TA1 - rtems_task_mode - RTEMS_TIMESLICE            - previous mode:  00000300
+TA1 - rtems_task_mode - RTEMS_NO_TIMESLICE         - previous mode:  00000300
+TA1 - rtems_task_mode - RTEMS_PREEMPT              - previous mode:  00000100
+TA1 - rtems_task_mode - RTEMS_NO_PREEMPT           - previous mode:  00000000
+TA1 - rtems_task_mode - RTEMS_NO_PREEMPT           - previous mode:  00000100
+TA1 - rtems_task_mode - RTEMS_PREEMPT              - previous mode:  00000100
+TA1 - rtems_task_mode - RTEMS_INTERRUPT_LEVEL( 3 ) - previous mode:  00000000
+TA1 - rtems_task_mode - RTEMS_INTERRUPT_LEVEL( 5 ) - previous mode:  00000000
+TA1 - rtems_task_mode - set all modes        - previous mode:  00000000
+TA1 - rtems_task_mode - set all modes        - previous mode:  00000700
+TA1 - rtems_task_mode - clear all modes      - previous mode:  00000700
+TA1 - rtems_task_mode - get current mode     - previous mode:  00000000
+TA1 - FORCE system state to before multitasking
+TA1 - enable preemption mode
+TA1 - rtems_task_mode - RTEMS_PREEMPT              - previous mode:  00000000
+TA1 - disable preemption mode
+TA1 - Restore system state
+*** END OF TEST 8 ***
 0  size = 0x000404f6 .
 not load section .debug_frame: addr = 0x00000000  size = 0x00004820 .
 not load section .debug_str: addr = 0x00000000  size = 0x0000f673 .


 *joel*:
2011-03-11	Joel Sherrill <joel.sherrilL at OARcorp.com>

	* sp58/init.c, sp58/sp58.scn: Account for case where left hand side
	seconds field is less than.

M  1.442  testsuites/sptests/ChangeLog
M    1.4  testsuites/sptests/sp58/init.c
M    1.2  testsuites/sptests/sp58/sp58.scn

diff -u rtems/testsuites/sptests/ChangeLog:1.441 rtems/testsuites/sptests/ChangeLog:1.442
--- rtems/testsuites/sptests/ChangeLog:1.441	Fri Mar 11 14:28:03 2011
+++ rtems/testsuites/sptests/ChangeLog	Fri Mar 11 14:36:45 2011
@@ -1,5 +1,10 @@
 2011-03-11	Joel Sherrill <joel.sherrilL at OARcorp.com>
 
+	* sp58/init.c, sp58/sp58.scn: Account for case where left hand side
+	seconds field is less than.
+
+2011-03-11	Joel Sherrill <joel.sherrilL at OARcorp.com>
+
 	* sp08/sp08.scn: Convert to UNIX CR/LF.
 
 2011-03-11	Joel Sherrill <joel.sherrilL at OARcorp.com>

diff -u rtems/testsuites/sptests/sp58/init.c:1.3 rtems/testsuites/sptests/sp58/init.c:1.4
--- rtems/testsuites/sptests/sp58/init.c:1.3	Tue Feb 22 01:37:01 2011
+++ rtems/testsuites/sptests/sp58/init.c	Fri Mar 11 14:36:45 2011
@@ -39,7 +39,23 @@
   _Timespec_Divide( &t1, &zero, &ival_percentage, &fval_percentage );
   rtems_test_assert( ival_percentage == 0 );
   rtems_test_assert( fval_percentage == 0 );
+}
 
+void timespec_greater_than_lhs_sec_less(void)
+{
+  struct timespec   lhs;
+  struct timespec   rhs;
+  bool              rc;
+
+  lhs.tv_sec  = 100;
+  lhs.tv_nsec = 0;
+
+  rhs.tv_sec  = 101;
+  rhs.tv_nsec = 0;
+
+  puts( "Init - _Timespec_Greater_than - lhs seconds less" );
+  rc = _Timespec_Greater_than( &lhs, &rhs );
+  rtems_test_assert( rc == false );
 }
 
 rtems_task Init(
@@ -49,6 +65,7 @@
   puts( "\n\n*** TEST 58 ***" );
 
   timespec_divide_by_zero();
+  timespec_greater_than_lhs_sec_less();
 
   puts( "*** END OF TEST 58 ***" );
   rtems_test_exit(0);

diff -u rtems/testsuites/sptests/sp58/sp58.scn:1.1 rtems/testsuites/sptests/sp58/sp58.scn:1.2
--- rtems/testsuites/sptests/sp58/sp58.scn:1.1	Thu Jul  9 13:21:58 2009
+++ rtems/testsuites/sptests/sp58/sp58.scn	Fri Mar 11 14:36:45 2011
@@ -1,3 +1,4 @@
 *** TEST 58 ***
 Init - _Timespec_Divide - by zero
+Init - _Timespec_Greater_than - lhs seconds less
 *** END OF TEST 58 ***



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20110311/0308f1e2/attachment-0001.html>


More information about the vc mailing list