summaryrefslogtreecommitdiffstats
path: root/testsuites
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
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 'testsuites')
-rw-r--r--testsuites/psxtests/ChangeLog5
-rw-r--r--testsuites/psxtests/psxsysconf/init.c5
-rw-r--r--testsuites/psxtests/psxsysconf/psxsysconf.scn1
3 files changed, 11 insertions, 0 deletions
diff --git a/testsuites/psxtests/ChangeLog b/testsuites/psxtests/ChangeLog
index b27dab1c3b..7a2b4265fc 100644
--- a/testsuites/psxtests/ChangeLog
+++ b/testsuites/psxtests/ChangeLog
@@ -1,3 +1,8 @@
+2009-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * psxsysconf/init.c, psxsysconf/psxsysconf.scn: Add missing error test
+ case to improve coverage analysis.
+
2009-05-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* psx01/init.c, psx01/task.c, psx02/init.c, psx02/task.c, psx03/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 );
diff --git a/testsuites/psxtests/psxsysconf/psxsysconf.scn b/testsuites/psxtests/psxsysconf/psxsysconf.scn
index 990a92632f..60955c50d1 100644
--- a/testsuites/psxtests/psxsysconf/psxsysconf.scn
+++ b/testsuites/psxtests/psxsysconf/psxsysconf.scn
@@ -5,5 +5,6 @@ sysconf - _SC_CLK_TCK=100
sysconf - _SC_OPEN_MAX=3
sysconf - _SC_GETPW_R_SIZE_MAX=1024
sysconf - _SC_PAGESIZE=4096
+sysconf - bad parameter = -1 errno=Invalid argument
sysconf - (SPARC only) _SC_STACK_PROT=4096
*** END OF POSIX TEST SYSCONF ***