2009-09-28 Joel Sherrill <joel.sherrill@OARcorp.com>

* Makefile.am, configure.ac: Add new test to exercise when notepads are
	not configured.
	* spnotepad01/.cvsignore, spnotepad01/Makefile.am, spnotepad01/init.c,
	spnotepad01/spnotepad01.doc, spnotepad01/spnotepad01.scn: New files.
This commit is contained in:
Joel Sherrill
2009-09-29 00:06:43 +00:00
parent 0c07f6950f
commit 5fc4c4b5ff
8 changed files with 126 additions and 1 deletions
+7
View File
@@ -1,3 +1,10 @@
2009-09-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac: Add new test to exercise when notepads are
not configured.
* spnotepad01/.cvsignore, spnotepad01/Makefile.am, spnotepad01/init.c,
spnotepad01/spnotepad01.doc, spnotepad01/spnotepad01.scn: New files.
2009-09-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* sp09/screen01.c, sp09/screen02.c, sp09/screen03.c, sp09/screen05.c,
+1 -1
View File
@@ -14,7 +14,7 @@ SUBDIRS = \
sp40 sp41 sp42 sp43 sp44 sp45 sp46 sp47 sp48 sp49 \
sp50 sp51 sp52 sp53 sp54 sp55 sp56 sp57 sp58 sp59 \
sp60 sp61 sp62 sp63 sp64 sp65 sp66 \
spchain spclockget spcoverage spobjgetnext spprintk spsize \
spchain spclockget spcoverage spobjgetnext spnotepad01 spprintk spsize \
spstkalloc spthreadq01 spwatchdog spwkspace \
spfatal01 spfatal02 spfatal03 spfatal04 spfatal05 spfatal06 spfatal07 \
spfatal08 spfatal09 spfatal10 spfatal11 spfatal12 \
+1
View File
@@ -123,6 +123,7 @@ spintrcritical13/Makefile
spintrcritical14/Makefile
spintrcritical15/Makefile
spintrcritical16/Makefile
spnotepad01/Makefile
spobjgetnext/Makefile
spprintk/Makefile
spsize/Makefile
@@ -0,0 +1,2 @@
Makefile
Makefile.in
@@ -0,0 +1,28 @@
##
## $Id$
##
MANAGERS = all
rtems_tests_PROGRAMS = spnotepad01
spnotepad01_SOURCES = init.c
dist_rtems_tests_DATA = spnotepad01.scn
dist_rtems_tests_DATA += spnotepad01.doc
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(top_srcdir)/../automake/compile.am
include $(top_srcdir)/../automake/leaf.am
spnotepad01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
LINK_OBJS = $(spnotepad01_OBJECTS) $(spnotepad01_LDADD)
LINK_LIBS = $(spnotepad01_LDLIBS)
spnotepad01$(EXEEXT): $(spnotepad01_OBJECTS) $(spnotepad01_DEPENDENCIES)
@rm -f spnotepad01$(EXEEXT)
$(make-exe)
include $(top_srcdir)/../automake/local.am
+57
View File
@@ -0,0 +1,57 @@
/*
* COPYRIGHT (c) 1989-2009.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*
* $Id$
*/
#include "tmacros.h"
rtems_task Init(
rtems_task_argument ignored
)
{
rtems_status_code status;
uint32_t note;
puts( "\n\n*** TEST NOTEPADS DISABLED ***" );
puts( "Init - rtems_task_get_note - RTEMS_NOT_CONFIGURED" );
status = rtems_task_get_note( rtems_task_self(), 0, &note );
fatal_directive_status(
status,
RTEMS_NOT_CONFIGURED,
"rtems_task_get_note not configured"
);
puts( "Init - rtems_task_set_note - RTEMS_NOT_CONFIGURED" );
status = rtems_task_set_note( rtems_task_self(), 0, 1 );
fatal_directive_status(
status,
RTEMS_NOT_CONFIGURED,
"rtems_task_set_note not configured"
);
puts( "*** END OF TEST NOTEPADS DISABLED ***" );
rtems_test_exit(0);
}
/* configuration information */
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
#define CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS
#define CONFIGURE_MAXIMUM_TASKS 1
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_INIT
#include <rtems/confdefs.h>
/* global variables */
@@ -0,0 +1,26 @@
#
# $Id$
#
# COPYRIGHT (c) 1989-2009.
# On-Line Applications Research Corporation (OAR).
#
# The license and distribution terms for this file may be
# found in the file LICENSE in this distribution or at
# http://www.rtems.com/license/LICENSE.
#
This file describes the directives and concepts tested by this test set.
test set name: spnotepad01
directives:
rtems_task_get_note
rtems_task_set_note
concepts:
+ Ensure that the proper error code is returned by the notepad services
when notepads are not configured.
is less than the minimum. This is mainly to ensure that a branch is taken.
@@ -0,0 +1,4 @@
*** TEST NOTEPADS DISABLED ***
Init - rtems_task_get_note - RTEMS_NOT_CONFIGURED
Init - rtems_task_set_note - RTEMS_NOT_CONFIGURED
*** END OF TEST NOTEPADS DISABLED ***