summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testsuites/psxtests/ChangeLog5
-rw-r--r--testsuites/psxtests/psx01/init.c14
-rw-r--r--testsuites/psxtests/psx01/psx01.scn4
3 files changed, 20 insertions, 3 deletions
diff --git a/testsuites/psxtests/ChangeLog b/testsuites/psxtests/ChangeLog
index c22d929c60..f5c4f4a379 100644
--- a/testsuites/psxtests/ChangeLog
+++ b/testsuites/psxtests/ChangeLog
@@ -1,5 +1,10 @@
2007-12-17 Joel Sherrill <joel.sherrill@OARcorp.com>
+ * psx01/init.c, psx01/psx01.scn: Add more test cases for
+ sched_rr_get_interval() and sched_get_priority_max().
+
+2007-12-17 Joel Sherrill <joel.sherrill@OARcorp.com>
+
* psxenosys/init.c: Fix typo.
2007-12-17 Joel Sherrill <joel.sherrill@OARcorp.com>
diff --git a/testsuites/psxtests/psx01/init.c b/testsuites/psxtests/psx01/init.c
index 3aa89dc726..c503260748 100644
--- a/testsuites/psxtests/psx01/init.c
+++ b/testsuites/psxtests/psx01/init.c
@@ -207,11 +207,21 @@ void *POSIX_Init(
printf( "Init: sched_get_priority_max (SCHED_FIFO) -- %d\n", priority );
assert( priority != -1 );
- puts( "Init: sched_get_priority_min -- EINVAL (invalid policy)" );
- priority = sched_get_priority_min( -1 );
+ puts( "Init: sched_get_priority_max -- EINVAL (invalid policy)" );
+ priority = sched_get_priority_max( -1 );
assert( priority == -1 );
assert( errno == EINVAL );
+ puts( "Init: sched_rr_get_interval -- ESRCH (invalid PID)" );
+ status = sched_rr_get_interval( 4, &tr );
+ assert( status == -1 );
+ assert( errno == ESRCH );
+
+ puts( "Init: sched_rr_get_interval -- EINVAL (invalid interval pointer)" );
+ status = sched_rr_get_interval( getpid(), NULL );
+ assert( status == -1 );
+ assert( errno == EINVAL );
+
/* print the round robin time quantum */
status = sched_rr_get_interval( getpid(), &tr );
diff --git a/testsuites/psxtests/psx01/psx01.scn b/testsuites/psxtests/psx01/psx01.scn
index 0f15268c5b..d0dd4fca55 100644
--- a/testsuites/psxtests/psx01/psx01.scn
+++ b/testsuites/psxtests/psx01/psx01.scn
@@ -31,7 +31,9 @@ Init: ID is 0x0b010001
Init: sched_get_priority_min (SCHED_FIFO) -- 1
Init: sched_get_priority_min -- EINVAL (invalid policy)
Init: sched_get_priority_max (SCHED_FIFO) -- 254
-Init: sched_get_priority_min -- EINVAL (invalid policy)
+Init: sched_get_priority_max -- EINVAL (invalid policy)
+Init: sched_rr_get_interval -- ESRCH (invalid PID)
+Init: sched_rr_get_interval -- EINVAL (invalid interval pointer)
Init: Round Robin quantum is 0 seconds, 500000000 nanoseconds
Init: pthread_create - SUCCESSFUL
Init: pthread_create - EAGAIN (too many threads)