summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxsysconf/init.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-15 16:01:15 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-15 16:01:15 +0000
commit760076d7461d5356153879757ba4def5ba749169 (patch)
tree560d944242e20277bd36b0e2d5399be91edde99b /testsuites/psxtests/psxsysconf/init.c
parent2009-05-15 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-760076d7461d5356153879757ba4def5ba749169.tar.bz2
2009-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
* psxsysconf/init.c, psxsysconf/psxsysconf.scn: Add missing error test case to improve coverage analysis.
Diffstat (limited to '')
-rw-r--r--testsuites/psxtests/psxsysconf/init.c5
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 );