source: rtems/testsuites/psxtests/psxtime/main.c @ 6da99727

4.104.114.84.95
Last change on this file since 6da99727 was d802489, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 2, 2002 at 12:53:21 AM

2002-08-01 Joel Sherrill <joel@…>

  • Per PR47 add support for buffered test output. This involved adding defines to redirect output to a buffer and dump it when full, at "test pause", and at exit. To avoid problems when redefining exit(), all tests were modified to call rtems_test_exit(). Some tests, notable psxtests, had to be modified to include the standard test macro .h file (pmacros.h or tmacros.h) to enable this support.
  • include/pmacros.h, psx01/task.c, psx02/init.c, psx02/task.c, psx03/init.c, psx04/init.c, psx05/init.c, psx06/init.c, psx07/init.c, psx08/task3.c, psx09/init.c, psx10/init.c, psx11/init.c, psx12/init.c, psx13/Makefile.am, psx13/main.c, psx13/test.c, psxcancel/init.c, psxchroot01/Makefile.am, psxchroot01/main.c, psxchroot01/test.c, psxfile01/Makefile.am, psxfile01/main.c, psxfile01/test.c, psxfile01/test_cat.c, psxfile01/test_extend.c, psxfile01/test_write.c, psxmount/Makefile.am, psxmount/main.c, psxmount/test.c, psxmsgq01/init.c, psxreaddir/Makefile.am, psxreaddir/main.c, psxreaddir/test.c, psxsem01/init.c, psxstat/Makefile.am, psxstat/main.c, psxstat/test.c, psxtime/main.c, psxtime/test.c, psxtimer/psxtimer.c: Modified.
  • Property mode set to 100644
File size: 836 bytes
Line 
1/*
2 *  Simple test program -- simplified version of sample test hello.
3 *
4 *  COPYRIGHT (c) 1989-1999.
5 *  On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.OARcorp.com/rtems/license.html.
10 *
11 *  $Id$
12 */
13
14#define TEST_INIT
15
16#include <bsp.h>
17#include <tmacros.h>  /* instantiate buffering code if needed */
18
19void test_main( void );
20
21rtems_task Init(
22  rtems_task_argument ignored
23)
24{
25  test_main();
26  rtems_test_exit( 0 );
27}
28
29/* configuration information */
30
31#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
32#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
33
34#define CONFIGURE_MAXIMUM_TASKS 1
35
36#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
37
38#define CONFIGURE_INIT
39
40#include <confdefs.h>
41
42/* end of file */
Note: See TracBrowser for help on using the repository browser.