forked from Imagelibrary/rtems
2009-08-12 Santosh G Vattam <vattam.santosh@gmail.com>
* ChangeLog, Makefile.am, configure.ac: Add new test for some core mutex cases. * sp65/.cvsignore, sp65/Makefile.am, sp65/init.c, sp65/sp65.doc, sp65/sp65.scn: New files.
This commit is contained in:
@@ -1,3 +1,16 @@
|
||||
2009-08-12 Santosh G Vattam <vattam.santosh@gmail.com>
|
||||
|
||||
* ChangeLog, Makefile.am, configure.ac: Add new test for some core
|
||||
mutex cases.
|
||||
* sp65/.cvsignore, sp65/Makefile.am, sp65/init.c, sp65/sp65.doc,
|
||||
sp65/sp65.scn: New files.
|
||||
|
||||
2009-08-12 Santosh G Vattam <vattam.santosh@gmail.com>
|
||||
|
||||
* Makefile.am, configure.ac: Add new test for some core mutex cases.
|
||||
* sp65/.cvsignore, sp65/Makefile.am, sp65/init.c, sp65/sp65.doc,
|
||||
sp65/sp65.scn: New files.
|
||||
|
||||
2009-08-11 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* spintrcritical01/init.c, spintrcritical06/init.c: Use 1 millisecond
|
||||
|
||||
@@ -13,7 +13,7 @@ SUBDIRS = \
|
||||
sp30 sp31 sp32 sp33 sp34 sp35 sp37 sp38 sp39 \
|
||||
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 \
|
||||
sp60 sp61 sp62 sp63 sp64 sp65 \
|
||||
spchain spclockget spcoverage spobjgetnext spprintk spsize \
|
||||
spstkalloc spthreadq01 spwatchdog spwkspace \
|
||||
spfatal01 spfatal02 spfatal03 spfatal04 spfatal05 spfatal06 spfatal07 \
|
||||
|
||||
@@ -90,6 +90,7 @@ sp61/Makefile
|
||||
sp62/Makefile
|
||||
sp63/Makefile
|
||||
sp64/Makefile
|
||||
sp65/Makefile
|
||||
spchain/Makefile
|
||||
spclockget/Makefile
|
||||
spcoverage/Makefile
|
||||
|
||||
2
testsuites/sptests/sp65/.cvsignore
Normal file
2
testsuites/sptests/sp65/.cvsignore
Normal file
@@ -0,0 +1,2 @@
|
||||
Makefile
|
||||
Makefile.in
|
||||
29
testsuites/sptests/sp65/Makefile.am
Normal file
29
testsuites/sptests/sp65/Makefile.am
Normal file
@@ -0,0 +1,29 @@
|
||||
##
|
||||
## $Id$
|
||||
##
|
||||
|
||||
MANAGERS = all
|
||||
|
||||
rtems_tests_PROGRAMS = sp65
|
||||
sp65_SOURCES = init.c
|
||||
|
||||
dist_rtems_tests_DATA = sp65.scn
|
||||
dist_rtems_tests_DATA += sp65.doc
|
||||
|
||||
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
sp65_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
LINK_OBJS = $(sp65_OBJECTS) $(sp65_LDADD)
|
||||
LINK_LIBS = $(sp65_LDLIBS)
|
||||
|
||||
sp65$(EXEEXT): $(sp65_OBJECTS) $(sp65_DEPENDENCIES)
|
||||
@rm -f sp65$(EXEEXT)
|
||||
$(make-exe)
|
||||
|
||||
include $(top_srcdir)/../automake/local.am
|
||||
54
testsuites/sptests/sp65/init.c
Normal file
54
testsuites/sptests/sp65/init.c
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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>
|
||||
#include <rtems/rtems/sem.h>
|
||||
|
||||
void* Task_1(
|
||||
void *argument
|
||||
);
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument ignored
|
||||
)
|
||||
{
|
||||
int status, ceiling, old_ceiling;
|
||||
rtems_id Mutex_id;
|
||||
|
||||
puts( "\n\n*** TEST 65 ***" );
|
||||
|
||||
status = rtems_semaphore_create(
|
||||
rtems_build_name( 's','e','m','1' ),
|
||||
1,
|
||||
RTEMS_SIMPLE_BINARY_SEMAPHORE,
|
||||
1,
|
||||
&Mutex_id
|
||||
)
|
||||
assert( !status );
|
||||
|
||||
puts( "*** END OF TEST 65 ***" );
|
||||
|
||||
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_MAXIMUM_REGIONS 1
|
||||
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
|
||||
|
||||
#define CONFIGURE_INIT
|
||||
#include <rtems/confdefs.h>
|
||||
|
||||
/* global variables */
|
||||
24
testsuites/sptests/sp65/sp65.doc
Normal file
24
testsuites/sptests/sp65/sp65.doc
Normal file
@@ -0,0 +1,24 @@
|
||||
#
|
||||
# $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: sp65
|
||||
|
||||
directives:
|
||||
|
||||
rtems_region_create
|
||||
really _Objects_Extend_information when unlimited extension fails
|
||||
|
||||
concepts:
|
||||
|
||||
+ Ensure that being unable to allocate memory when extending an object class
|
||||
works as expected.
|
||||
0
testsuites/sptests/sp65/sp65.scn
Normal file
0
testsuites/sptests/sp65/sp65.scn
Normal file
Reference in New Issue
Block a user