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 | |
---|
19 | const char rtems_test_name[] = "SPPAGESIZE"; |
---|
20 | |
---|
21 | /* forward declarations to avoid warnings */ |
---|
22 | rtems_task Init(rtems_task_argument argument); |
---|
23 | |
---|
24 | rtems_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.