source: rtems/testsuites/sptests/sppagesize/init.c @ 54da1243

4.11
Last change on this file since 54da1243 was 54da1243, checked in by Chirayu Desai <cdesai@…>, on Dec 6, 2013 at 3:05:36 PM

sptests: add a test for page size

Bug: https://www.rtems.org/bugzilla/show_bug.cgi?id=1216

  • Property mode set to 100644
File size: 980 bytes
Line 
1/*
2 *  COPYRIGHT (c) 1989-2011.
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.com/license/LICENSE.
8 */
9
10#ifdef HAVE_CONFIG_H
11#include "config.h"
12#endif
13
14#include <tmacros.h>
15#include <rtems.h>
16#include <limits.h>
17#include <sys/param.h>
18
19/* forward declarations to avoid warnings */
20rtems_task Init(rtems_task_argument argument);
21
22rtems_task Init(
23  rtems_task_argument argument
24)
25{
26    puts("\n\n*** TEST SPPAGESIZE ***");
27
28    rtems_test_assert(PAGESIZE == PAGE_SIZE);
29    rtems_test_assert(getpagesize() == PAGE_SIZE);
30
31    puts("*** END OF TEST SPPAGESIZE ***");
32
33    rtems_test_exit(0);
34}
35
36#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
37#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
38
39#define CONFIGURE_MAXIMUM_TASKS 1
40
41#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
42
43#define CONFIGURE_INIT
44
45#include <rtems/confdefs.h>
Note: See TracBrowser for help on using the repository browser.