[Lsb-messages] /var/www/bzr/lsb/devel/olver-core-tests r101: Fix sched_setscheduler patch to match observed Linux behavior.

Jeff Licquia licquia at linuxfoundation.org
Wed Aug 14 05:19:10 UTC 2013


------------------------------------------------------------
revno: 101
author: Kurban Mallachiev <mallachiev at ispras.ru>
committer: Jeff Licquia <licquia at linuxfoundation.org>
branch nick: olver-core-tests
timestamp: Wed 2013-08-14 01:19:10 -0400
message:
  Fix sched_setscheduler patch to match observed Linux behavior.
modified:
  src/model/process/scheduler/scheduler_model.sec
-------------- next part --------------
=== modified file 'src/model/process/scheduler/scheduler_model.sec'
--- a/src/model/process/scheduler/scheduler_model.sec	2008-09-05 17:30:58 +0000
+++ b/src/model/process/scheduler/scheduler_model.sec	2013-08-14 05:19:10 +0000
@@ -1071,12 +1071,14 @@
     scope threads.
 
 RETURN VALUE
-
+ Old:
     Upon successful completion, the function shall return the former scheduling
     policy of the specified process. If the sched_setscheduler() function fails
     to complete successfully, the policy and scheduling parameters shall remain
     unchanged, and the function shall return a value of -1 and set errno to
     indicate the error.
+ LSB 4.1: 
+    On success,  0 is returned instead of the former scheduling policy.
 
 ERRORS
 
@@ -1330,12 +1332,11 @@
         if(sched_setscheduler_spec != -1)
         {
             /*
-             * Upon successful completion, the function shall return the former
-             * scheduling policy of the specified process.
+             * Upon successful completion, the function shall return 0 
              */
-            REQ("sched_setscheduler.22.01",
-                "Shall return the former scheduling policy",
-                 sched_setscheduler_spec == *former_policy);
+            REQ("lsb.sched_setscheduler.22.01",
+                "Shall return 0",
+                 sched_setscheduler_spec == 0);
         }
 
         return true;



More information about the lsb-messages mailing list