diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-03-09 15:23:20 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-03-09 15:25:24 +0100 |
commit | 40ecd117b265d5d5c8a4da5987af3e4b881b0fc9 (patch) | |
tree | 3c721c18d6c2bddbb468faba9ffc62c09a979ca3 /testsuites/psxtests/psxsysconf | |
parent | 8552df6514e2c28ac3d1fdbc377e4f55fa8bb32e (diff) |
sysconf: Add _SC_NPROCESSORS_(CONF|ONLN)
Diffstat (limited to 'testsuites/psxtests/psxsysconf')
-rw-r--r-- | testsuites/psxtests/psxsysconf/init.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxsysconf/init.c b/testsuites/psxtests/psxsysconf/init.c index b2b9d5fc20..2dd9018722 100644 --- a/testsuites/psxtests/psxsysconf/init.c +++ b/testsuites/psxtests/psxsysconf/init.c @@ -73,6 +73,15 @@ void *POSIX_Init( if ( (sc != -1) || (errno != EINVAL) ) rtems_test_exit(0); + rtems_test_assert( + sysconf( _SC_NPROCESSORS_CONF ) + == (long) rtems_configuration_get_maximum_processors() + ); + + rtems_test_assert( + sysconf( _SC_NPROCESSORS_ONLN ) == (long) rtems_get_processor_count() + ); + #if defined(__sparc__) /* Solaris _SC_STACK_PROT - 515 */ sc = sysconf( _SC_PAGESIZE ); |