diff options
Diffstat (limited to '')
-rw-r--r-- | testsuites/psxtests/psxsysconf/init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxsysconf/init.c b/testsuites/psxtests/psxsysconf/init.c index 950f208f01..615a9470ac 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 = sysconf( 0x12345678 ); + printf( "sysconf - bad parameter = %d errno=%s\n", sc, strerror(errno) ); + if ( (sc != -1) || (errno != EINVAL) ) + rtems_test_exit(0); + #if defined(__sparc__) /* Solaris _SC_STACK_PROT - 515 */ sc = sysconf( _SC_PAGESIZE ); |