From 760076d7461d5356153879757ba4def5ba749169 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 15 May 2009 16:01:15 +0000 Subject: 2009-05-15 Joel Sherrill * psxsysconf/init.c, psxsysconf/psxsysconf.scn: Add missing error test case to improve coverage analysis. --- testsuites/psxtests/psxsysconf/init.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'testsuites/psxtests/psxsysconf/init.c') 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 ); -- cgit v1.2.3