source: rtems/testsuites/libtests/devfs01/init.c @ 98c6d50

5
Last change on this file since 98c6d50 was 98c6d50, checked in by Chris Johns <chrisj@…>, on 10/19/17 at 05:39:16

testsuite: Use printk for all test output where possible.

  • Remove the printf support leaving the direct printk support configured with TESTS_USE_PRINTK and all other output goes via a buffered vsniprintf call to printk.
  • Control the test's single init for functions and global data with TEST_INIT and not CONFIGURE_INIT. They are now separate.

Updates #3170.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*
2 *  COPYRIGHT (c) 1989-2012.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.org/license/LICENSE.
8 */
9
10#ifdef HAVE_CONFIG_H
11#include "config.h"
12#endif
13
14#define TEST_INIT
15
16#define TESTS_USE_PRINTK
17#include <tmacros.h>
18#include "test_support.h"
19#include <rtems/devfs.h>
20#include <errno.h>
21
22const char rtems_test_name[] = "DEVFS 1";
23
24/* forward declarations to avoid warnings */
25rtems_task Init(rtems_task_argument argument);
26
27rtems_task Init(
28  rtems_task_argument argument
29)
30{
31  TEST_BEGIN();
32
33  puts( "devFS_Show" );
34  devFS_Show();
35 
36  TEST_END();
37
38  rtems_test_exit(0);
39}
40
41/* configuration information */
42
43#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
44
45#define CONFIGURE_MAXIMUM_TASKS             1
46#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
47
48#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
49
50#define CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM
51
52#define CONFIGURE_INIT
53
54#include <rtems/confdefs.h>
55/* end of file */
Note: See TracBrowser for help on using the repository browser.