source: rtems/testsuites/samples/iostream/init.cc @ 8c26e798

4.11
Last change on this file since 8c26e798 was 8c26e798, checked in by Sebastian Huber <sebastian.huber@…>, on Mar 25, 2014 at 3:45:08 PM

tests: Produce proper begin/end messages

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*  Init
2 *
3 *  This routine is the initialization task for this test program.
4 *  It is called from init_exec and has the responsibility for creating
5 *  and starting the tasks that make up the test.  If the time of day
6 *  clock is required for the test, it should also be set to a known
7 *  value by this function.
8 *
9 *  Input parameters:  NONE
10 *
11 *  Output parameters:  NONE
12 *
13 *  COPYRIGHT (c) 1989-2008.
14 *  On-Line Applications Research Corporation (OAR).
15 *
16 *  The license and distribution terms for this file may be
17 *  found in the file LICENSE in this distribution or at
18 *  http://www.rtems.org/license/LICENSE.
19 */
20
21#define CONFIGURE_INIT
22#include "system.h"
23
24#if BSP_SMALL_MEMORY
25#include <stdio.h>
26#else
27#include <iostream>
28#endif
29
30#include <stdlib.h>
31
32const char rtems_test_name[] = "IOSTREAM";
33
34rtems_task Init(
35  rtems_task_argument ignored
36)
37{
38#if BSP_SMALL_MEMORY
39  printf ("NO STDC++. MEMORY TOO SMALL");
40#else
41  std::cout << std::endl << std::endl
42    << "*** BEGIN OF " << rtems_test_name << " TEST ***" << std::endl;
43  std::cout << "Hello World" << std::endl;
44  std::cout << "*** END OF " << rtems_test_name << " TEST ***" << std::endl;
45#endif
46  exit( 0 );
47}
48
Note: See TracBrowser for help on using the repository browser.