source: rtems/testsuites/libtests/dl03/init.c @ af43554

5
Last change on this file since af43554 was af43554, checked in by Sebastian Huber <sebastian.huber@…>, on 10/26/17 at 11:59:11

tests: Remove TEST_INIT

The TEST_EXTERN is a used only by the system.h style tests and they use
CONFIGURE_INIT appropriately.

Update #3170.
Update #3199.

  • Property mode set to 100644
File size: 1.3 KB
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#ifdef HAVE_CONFIG_H
10  #include "config.h"
11#endif
12
13#include "tmacros.h"
14
15#include <errno.h>
16#include <string.h>
17#include <stdint.h>
18#include <unistd.h>
19
20#include "dl-cache.h"
21
22const char rtems_test_name[] = "libdl (RTL) 3";
23
24/* forward declarations to avoid warnings */
25static rtems_task Init(rtems_task_argument argument);
26
27static int test(void)
28{
29  int ret;
30  ret = dl_cache_test();
31  if (ret)
32    rtems_test_exit(ret);
33  return 0;
34}
35
36static void Init(rtems_task_argument arg)
37{
38  TEST_BEGIN();
39
40  test();
41
42  TEST_END();
43
44  rtems_test_exit(0);
45}
46
47#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
48#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
49
50#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 4
51
52#define CONFIGURE_MAXIMUM_TASKS 1
53
54#define CONFIGURE_MINIMUM_TASK_STACK_SIZE (8U * 1024U)
55
56#define CONFIGURE_EXTRA_TASK_STACKS (8 * 1024)
57
58#define CONFIGURE_MAXIMUM_SEMAPHORES 1
59
60#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
61
62#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
63#define CONFIGURE_INIT_TASK_ATTRIBUTES   (RTEMS_DEFAULT_ATTRIBUTES | RTEMS_FLOATING_POINT)
64
65#define CONFIGURE_INIT
66
67#include <rtems/confdefs.h>
Note: See TracBrowser for help on using the repository browser.