source: rtems/testsuites/sptests/sppagesize/init.c

Last change on this file was c4b8b147, checked in by Sebastian Huber <sebastian.huber@…>, on 11/03/17 at 07:35:38

tests: Use simple console driver

Update #3170.
Update #3199.

  • Property mode set to 100644
File size: 1.0 KB
Line 
1/*
2 *  Copyright (c) 2013 Chirayu Desai <cdesai@cyanogenmod.org>
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#include <rtems.h>
15#include <limits.h>
16#include <unistd.h>
17#include <sys/param.h>
18
19const char rtems_test_name[] = "SPPAGESIZE";
20
21/* forward declarations to avoid warnings */
22rtems_task Init(rtems_task_argument argument);
23
24rtems_task Init(
25  rtems_task_argument argument
26)
27{
28    TEST_BEGIN();
29
30    rtems_test_assert(PAGESIZE == PAGE_SIZE);
31    rtems_test_assert(getpagesize() == PAGE_SIZE);
32
33    TEST_END();
34
35    rtems_test_exit(0);
36}
37
38#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
39#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
40
41#define CONFIGURE_MAXIMUM_TASKS 1
42
43#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
44
45#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
46
47#define CONFIGURE_INIT
48
49#include <rtems/confdefs.h>
Note: See TracBrowser for help on using the repository browser.