Changeset dfc6f3dc in rtems


Ignore:
Timestamp:
May 10, 2007, 7:31:36 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
08f9722
Parents:
45d406f8
Message:

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

  • ticker/Makefile.am, ticker/init.c, ticker/system.h, ticker/tasks.c: Test needs clock manager. Should use rtems_test_exit() instead of exit().
Location:
testsuites/samples
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • testsuites/samples/ChangeLog

    r45d406f8 rdfc6f3dc  
     12007-05-10      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * ticker/Makefile.am, ticker/init.c, ticker/system.h, ticker/tasks.c:
     4        Test needs clock manager. Should use rtems_test_exit() instead of
     5        exit().
     6
    172007-05-09      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • testsuites/samples/ticker/Makefile.am

    r45d406f8 rdfc6f3dc  
    33##
    44
    5 MANAGERS = io
     5MANAGERS = io clock
    66
    77rtems_tests_PROGRAMS = ticker.exe
  • testsuites/samples/ticker/init.c

    r45d406f8 rdfc6f3dc  
    2323#define CONFIGURE_INIT
    2424#include "system.h"
    25 #include <stdio.h>
    2625
    2726/*
  • testsuites/samples/ticker/system.h

    r45d406f8 rdfc6f3dc  
    1616#include <rtems.h>
    1717#include <inttypes.h>
     18#include "../../support/include/buffer_test_io.h"
    1819
    1920/* functions */
     
    4142#include <bsp.h> /* for device driver prototypes */
    4243
    43 #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
     44#if defined(CONFIGURE_INIT)
     45int atexit(void (*function)(void)){}
     46#endif
    4447#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
     48#define CONFIGURE_DISABLE_NEWLIB_REENTRANCY
    4549
    4650#define CONFIGURE_MAXIMUM_TASKS             4
     
    6569       _s1, (_tb)->hour, (_tb)->minute, (_tb)->second, \
    6670       (_tb)->month, (_tb)->day, (_tb)->year, _s2 ); \
    67     fflush(stdout); \
    6871  } while ( 0 )
    6972
  • testsuites/samples/ticker/tasks.c

    r45d406f8 rdfc6f3dc  
    1919
    2020#include "system.h"
    21 #include <stdio.h>
    22 #include <stdlib.h>
    2321
    2422rtems_task Test_task(
     
    3735    if ( time.second >= 35 ) {
    3836      puts( "*** END OF CLOCK TICK TEST ***" );
    39       exit( 0 );
     37      rtems_test_exit( 0 );
    4038    }
    4139    put_name( Task_name[ task_index ], FALSE );
Note: See TracChangeset for help on using the changeset viewer.