diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-09-20 17:03:18 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-09-20 17:03:18 +0000 |
commit | 105530fe5dd328b5ad653b39d1b7e9def2a09916 (patch) | |
tree | cca8232d18cf180a9846cf315f6ce85c5c95eed7 /testsuites/psxtests/psxsysconf | |
parent | Housekeeping. (diff) | |
download | rtems-105530fe5dd328b5ad653b39d1b7e9def2a09916.tar.bz2 |
2009-09-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxsysconf/init.c, psxsysconf/psxsysconf.scn: Add test for
getpagesize().
Diffstat (limited to '')
-rw-r--r-- | testsuites/psxtests/psxsysconf/init.c | 5 | ||||
-rw-r--r-- | testsuites/psxtests/psxsysconf/psxsysconf.scn | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxsysconf/init.c b/testsuites/psxtests/psxsysconf/init.c index 615a9470ac..1f03ca490b 100644 --- a/testsuites/psxtests/psxsysconf/init.c +++ b/testsuites/psxtests/psxsysconf/init.c @@ -53,6 +53,11 @@ void *POSIX_Init( if ( sc == -1 ) rtems_test_exit(0); + sc = getpagesize(); + printf( "getpagesize = %d\n", sc ); + if ( sc == -1 ) + rtems_test_exit(0); + sc = sysconf( 0x12345678 ); printf( "sysconf - bad parameter = %d errno=%s\n", sc, strerror(errno) ); if ( (sc != -1) || (errno != EINVAL) ) diff --git a/testsuites/psxtests/psxsysconf/psxsysconf.scn b/testsuites/psxtests/psxsysconf/psxsysconf.scn index 60955c50d1..c414e0d28e 100644 --- a/testsuites/psxtests/psxsysconf/psxsysconf.scn +++ b/testsuites/psxtests/psxsysconf/psxsysconf.scn @@ -5,6 +5,7 @@ sysconf - _SC_CLK_TCK=100 sysconf - _SC_OPEN_MAX=3 sysconf - _SC_GETPW_R_SIZE_MAX=1024 sysconf - _SC_PAGESIZE=4096 +getpagesize = 4096 sysconf - bad parameter = -1 errno=Invalid argument sysconf - (SPARC only) _SC_STACK_PROT=4096 *** END OF POSIX TEST SYSCONF *** |