2007-05-10 Joel Sherrill <joel.sherrill@OARcorp.com>

* ticker/Makefile.am, ticker/init.c, ticker/system.h, ticker/tasks.c:
	Test needs clock manager. Should use rtems_test_exit() instead of
	exit().
This commit is contained in:
Joel Sherrill
2007-05-10 19:31:36 +00:00
parent 45d406f8e9
commit dfc6f3dc11
5 changed files with 13 additions and 7 deletions
+6
View File
@@ -1,3 +1,9 @@
2007-05-10 Joel Sherrill <joel.sherrill@OARcorp.com>
* ticker/Makefile.am, ticker/init.c, ticker/system.h, ticker/tasks.c:
Test needs clock manager. Should use rtems_test_exit() instead of
exit().
2007-05-09 Joel Sherrill <joel.sherrill@OARcorp.com>
* minimum/Makefile.am, minimum/init.c: Switch back to using optional
+1 -1
View File
@@ -2,7 +2,7 @@
## $Id$
##
MANAGERS = io
MANAGERS = io clock
rtems_tests_PROGRAMS = ticker.exe
ticker_exe_SOURCES = init.c tasks.c system.h
-1
View File
@@ -22,7 +22,6 @@
#define CONFIGURE_INIT
#include "system.h"
#include <stdio.h>
/*
* Keep the names and IDs in global variables so another task can use them.
+5 -2
View File
@@ -15,6 +15,7 @@
#include <rtems.h>
#include <inttypes.h>
#include "../../support/include/buffer_test_io.h"
/* functions */
@@ -40,8 +41,11 @@ extern rtems_name Task_name[ 4 ]; /* array of task names */
#include <bsp.h> /* for device driver prototypes */
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#if defined(CONFIGURE_INIT)
int atexit(void (*function)(void)){}
#endif
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
#define CONFIGURE_DISABLE_NEWLIB_REENTRANCY
#define CONFIGURE_MAXIMUM_TASKS 4
@@ -64,7 +68,6 @@ extern rtems_name Task_name[ 4 ]; /* array of task names */
printf( "%s%02" PRId32 ":%02" PRId32 ":%02" PRId32 " %02" PRId32 "/%02" PRId32 "/%04" PRId32 "%s", \
_s1, (_tb)->hour, (_tb)->minute, (_tb)->second, \
(_tb)->month, (_tb)->day, (_tb)->year, _s2 ); \
fflush(stdout); \
} while ( 0 )
/*
+1 -3
View File
@@ -18,8 +18,6 @@
*/
#include "system.h"
#include <stdio.h>
#include <stdlib.h>
rtems_task Test_task(
rtems_task_argument unused
@@ -36,7 +34,7 @@ rtems_task Test_task(
status = rtems_clock_get( RTEMS_CLOCK_GET_TOD, &time );
if ( time.second >= 35 ) {
puts( "*** END OF CLOCK TICK TEST ***" );
exit( 0 );
rtems_test_exit( 0 );
}
put_name( Task_name[ task_index ], FALSE );
print_time( " - rtems_clock_get - ", &time, "\n" );