From 40ecd117b265d5d5c8a4da5987af3e4b881b0fc9 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 9 Mar 2015 15:23:20 +0100 Subject: sysconf: Add _SC_NPROCESSORS_(CONF|ONLN) --- testsuites/psxtests/psxsysconf/init.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'testsuites/psxtests/psxsysconf/init.c') 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 ); -- cgit v1.2.3