summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxsysconf/init.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--testsuites/psxtests/psxsysconf/init.c9
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 );