summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-06 17:58:44 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-06 17:58:44 +0000
commit69ca55c0885c1410c3b25466ef7d862d112583e2 (patch)
tree78fb684af0476b5ea7fcc78ea3d94e439fa6dda5
parent2009-07-06 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-69ca55c0885c1410c3b25466ef7d862d112583e2.tar.bz2
2009-07-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* psx07/init.c: Slight test fix to ensure state of sched_param structure.
-rw-r--r--testsuites/psxtests/ChangeLog5
-rw-r--r--testsuites/psxtests/psx07/init.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/testsuites/psxtests/ChangeLog b/testsuites/psxtests/ChangeLog
index cde955bd33..0da35952f3 100644
--- a/testsuites/psxtests/ChangeLog
+++ b/testsuites/psxtests/ChangeLog
@@ -1,3 +1,8 @@
+2009-07-06 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * psx07/init.c: Slight test fix to ensure state of sched_param
+ structure.
+
2009-07-04 Santosh G Vattam <vattam.santosh@gmail.com>
* psxrwlock01/psxrwlock01.scn, psxrwlock01/test.c: Add test case for
diff --git a/testsuites/psxtests/psx07/init.c b/testsuites/psxtests/psx07/init.c
index 8ebe6ca75c..c49ae5c250 100644
--- a/testsuites/psxtests/psx07/init.c
+++ b/testsuites/psxtests/psx07/init.c
@@ -504,7 +504,9 @@ void *POSIX_Init(
status = pthread_setschedparam( pthread_self(), SCHED_OTHER, NULL );
fatal_directive_check_status_only( status, EINVAL, "invalid priority" );
- schedparam.sched_priority = sched_get_priority_max(SCHED_OTHER);
+ /* reset sched_param */
+ status = pthread_getschedparam( pthread_self(), &schedpolicy, &schedparam );
+ posix_service_failed( status, "pthread_getschedparam");
puts( "Init: pthread_setschedparam - EINVAL (invalid policy)" );
status = pthread_setschedparam( pthread_self(), -1, &schedparam );