summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxtimer02
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-17 20:59:23 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-17 20:59:23 +0000
commit7a67dfbc62810a694e2f99a48e086c322bebe984 (patch)
tree16b45d86f9c039bc03f1e4abaaff2754178c01de /testsuites/psxtests/psxtimer02
parent2009-05-17 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-7a67dfbc62810a694e2f99a48e086c322bebe984.tar.bz2
2009-05-17 Joel Sherrill <joel.sherrill@OARcorp.com>
* psxsem01/Makefile.am, psxsem01/init.c, psxsem01/psxsem01.scn, psxtimer01/psxtimer.c, psxtimer01/system.h, psxtimer02/psxtimer.c: Improved so coverage is better.
Diffstat (limited to 'testsuites/psxtests/psxtimer02')
-rw-r--r--testsuites/psxtests/psxtimer02/psxtimer.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxtimer02/psxtimer.c b/testsuites/psxtests/psxtimer02/psxtimer.c
index b660a412c7..12e9dbba17 100644
--- a/testsuites/psxtests/psxtimer02/psxtimer.c
+++ b/testsuites/psxtests/psxtimer02/psxtimer.c
@@ -103,6 +103,13 @@ void *POSIX_Init (
status = timer_settime( timer, TIMER_ABSTIME, &itimer, NULL );
fatal_posix_service_status_errno( status, EINVAL, "bad itimer value #3" );
+ clock_gettime( CLOCK_REALTIME, &now );
+ itimer.it_value = now;
+ itimer.it_value.tv_sec = itimer.it_value.tv_sec + 1;
+ puts( "timer_settime - bad id - EINVAL" );
+ status = timer_settime( timer1, TIMER_ABSTIME, &itimer, NULL );
+ fatal_posix_service_status_errno( status, EINVAL, "bad id" );
+
itimer.it_value.tv_nsec = 0;
puts( "timer_settime - bad clock value - EINVAL" );
status = timer_settime( timer, 0x80, &itimer, NULL );