source: rtems/testsuites/libtests/dl01/dl01-o1.c @ 9de8d61

Last change on this file since 9de8d61 was 9de8d61, checked in by Sebastian Huber <sebastian.huber@…>, on 07/17/20 at 11:36:49

libtest: <rtems/test.h> to <rtems/test-info.h>

Rename this header file to later move <t.h> to <rtems/test.h>. The main
feature provided by <rtems/test-info.h> is the output of standard test
information which is consumed by the RTEMS Tester.

Update #3199.

  • Property mode set to 100644
File size: 752 bytes
Line 
1/*
2 * Copyright (c) 2014 Chris Johns <chrisj@rtems.org>.  All rights reserved.
3 *
4 * The license and distribution terms for this file may be
5 * found in the file LICENSE in this distribution or at
6 * http://www.rtems.org/license/LICENSE.
7 */
8
9/**
10 * Hello World as a loadable module.
11 */
12
13#include <rtems/test-info.h>
14
15#define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
16
17/*
18 * Yes a decl in the source. This is a modules main and I could not find which
19 * header main is defined in.
20 */
21int rtems_main (int argc, char* argv[]);
22
23int rtems_main (int argc, char* argv[])
24{
25  int arg;
26  printf("Loaded module: argc:%d [%s]\n", argc, __FILE__);
27  for (arg = 0; arg < argc; ++arg)
28    printf("  %d: %s\n", arg, argv[arg]);
29  return argc;
30}
Note: See TracBrowser for help on using the repository browser.