Changeset 7b5f6643 in rtems


Ignore:
Timestamp:
Dec 24, 2013, 1:32:37 PM (6 years ago)
Author:
Chirayu Desai <cdesai@…>
Branches:
4.11, master
Children:
c51645f
Parents:
0c09ccf3
git-author:
Chirayu Desai <cdesai@…> (12/24/13 13:32:37)
git-committer:
Gedare Bloom <gedare@…> (12/24/13 14:53:59)
Message:

sptests: refactor sp09/screen13 into a new test spclock_err02

Location:
testsuites/sptests
Files:
3 added
6 edited
1 moved

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/Makefile.am

    r0c09ccf3 r7b5f6643  
    3939SUBDIRS += spinternalerror02
    4040SUBDIRS += sptimer_err01 sptimer_err02
     41SUBDIRS += spclock_err02
    4142
    4243if HAS_CPUSET
  • testsuites/sptests/configure.ac

    r0c09ccf3 r7b5f6643  
    125125spchain/Makefile
    126126spclockget/Makefile
     127spclock_err02/Makefile
    127128spcoverage/Makefile
    128129spedfsched01/Makefile
  • testsuites/sptests/sp09/Makefile.am

    r0c09ccf3 r7b5f6643  
    33sp09_SOURCES = init.c delay.c isr.c screen01.c screen02.c screen03.c screen04.c \
    44    screen05.c screen06.c screen07.c screen08.c screen09.c screen10.c \
    5     screen11.c screen12.c screen13.c task1.c task2.c task3.c task4.c \
     5    screen11.c screen12.c task1.c task2.c task3.c task4.c \
    66    system.h
    77
  • testsuites/sptests/sp09/sp09.scn

    r0c09ccf3 r7b5f6643  
    280280TA1 - rtems_region_extend - RTEMS_INVALID_ID
    281281TA1 - rtems_region_extend - within heap - RTEMS_INVALID_ADDRESS
    282 <pause - screen 13>
    283 TA1 - rtems_io_close - RTEMS_INVALID_NUMBER
    284 TA1 - rtems_io_control - RTEMS_INVALID_NUMBER
    285 TA1 - rtems_io_initialize - RTEMS_INVALID_NUMBER
    286 TA1 - rtems_io_open - RTEMS_INVALID_NUMBER
    287 TA1 - rtems_io_read - RTEMS_INVALID_NUMBER
    288 TA1 - rtems_io_write - RTEMS_INVALID_NUMBER
    289 TA1 - rtems_clock_set - 23:59:59   12/31/2000 - RTEMS_SUCCESSFUL
    290 TA1 - rtems_clock_get_tod - 00:00:00   01/01/2001 - RTEMS_SUCCESSFUL
    291 TA1 - rtems_clock_set - 23:59:59   12/31/1999 - RTEMS_SUCCESSFUL
    292 TA1 - rtems_clock_get_tod - 00:00:00   01/01/2000 - RTEMS_SUCCESSFUL
    293 TA1 - rtems_clock_set - 23:59:59   12/31/2100 - RTEMS_SUCCESSFUL
    294 TA1 - rtems_clock_get_tod - 17:31:44   11/25/1964 - RTEMS_SUCCESSFUL
    295 TA1 - rtems_clock_set - 23:59:59   12/31/2099 - RTEMS_SUCCESSFUL
    296 TA1 - rtems_clock_get_tod - 17:31:44   11/25/1963 - RTEMS_SUCCESSFUL
    297 TA1 - rtems_clock_set - 23:59:59   12/31/1991 - RTEMS_SUCCESSFUL
    298 TA1 - rtems_clock_get_tod - 00:00:00   01/01/1992 - RTEMS_SUCCESSFUL
    299282*** END OF TEST 9 ***
  • testsuites/sptests/sp09/system.h

    r0c09ccf3 r7b5f6643  
    7373void Screen12( void );
    7474
    75 void Screen13( void );
    76 
    7775/* configuration information */
    7876
  • testsuites/sptests/sp09/task1.c

    r0c09ccf3 r7b5f6643  
    6060
    6161  Screen12();
    62   rtems_test_pause_and_screen_number( 13 );
    63 
    64   Screen13();
    6562
    6663  puts( "*** END OF TEST 9 ***" );
  • testsuites/sptests/spclock_err02/init.c

    r0c09ccf3 r7b5f6643  
    1 /*  Screen13
    2  *
    3  *  This routine generates error screen 13 for test 9.
    4  *
    5  *  Input parameters:  NONE
    6  *
    7  *  Output parameters:  NONE
    8  *
    9  *  COPYRIGHT (c) 1989-2011.
     1/*
     2 *  COPYRIGHT (c) 2013.
    103 *  On-Line Applications Research Corporation (OAR).
    114 *
     
    1912#endif
    2013
    21 #include "system.h"
     14#include <tmacros.h>
     15#include "test_support.h"
    2216
    23 void Screen13()
     17/* forward declaration to avoid warnings */
     18rtems_task Init(rtems_task_argument argument);
     19
     20rtems_task Init(
     21  rtems_task_argument argument
     22)
    2423{
     24  puts( "\n\n*** TEST SPCLOCK_ERR02 ***" );
     25
    2526  rtems_time_of_day time;
    2627  rtems_status_code status;
     
    113114  directive_failed( status, "rtems_clock_set" );
    114115  print_time( "TA1 - rtems_clock_get_tod - ", &time, " - RTEMS_SUCCESSFUL\n" );
     116
     117  puts( "*** END OF TEST SPCLOCK_ERR02 ***" );
    115118}
     119
     120#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
     121#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
     122
     123#define CONFIGURE_MAXIMUM_TASKS             1
     124#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
     125
     126#define CONFIGURE_INIT
     127
     128#include <rtems/confdefs.h>
     129/* end of file */
Note: See TracChangeset for help on using the changeset viewer.