From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [PATCH 5/8] testsuite/smokey: reset main()'s SCHED_OTHER policy before each test References: <20190601151502.27216-1-rpm@xenomai.org> <20190601151502.27216-6-rpm@xenomai.org> <3bec3f3f-509a-69ff-bac1-aee18494bf90@siemens.com> From: Jan Kiszka Message-ID: <0e04d03c-f96a-fcbc-d729-5d9cee35fd9e@siemens.com> Date: Mon, 3 Jun 2019 14:29:53 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Philippe Gerum , xenomai@xenomai.org On 03.06.19 13:51, Philippe Gerum wrote: > On 6/3/19 1:09 PM, Jan Kiszka wrote: >> On 01.06.19 17:14, Philippe Gerum wrote: >>> Signed-off-by: Philippe Gerum >>> --- >>>   testsuite/smokey/main.c | 2 ++ >>>   1 file changed, 2 insertions(+) >>> >>> diff --git a/testsuite/smokey/main.c b/testsuite/smokey/main.c >>> index 12321dfc5..5702e825a 100644 >>> --- a/testsuite/smokey/main.c >>> +++ b/testsuite/smokey/main.c >>> @@ -22,6 +22,7 @@ >>>     int main(int argc, char *const argv[]) >>>   { >>> +    struct sched_param param = { .sched_priority = 0 }; >>>       struct smokey_test *t; >>>       int ret, fails = 0; >>>   @@ -29,6 +30,7 @@ int main(int argc, char *const argv[]) >>>           return 0; >>>         for_each_smokey_test(t) { >>> +        pthread_setschedparam(pthread_self(), SCHED_OTHER, ¶m); >>>           ret = t->run(t, argc, argv); >>>           if (ret) { >>>               if (ret == -ENOSYS) { >>> >> >> Is that a cosmetic cleanup, or did we see tests failing or doing the >> wrong thing? Just to clarify the importance of this fix, also for stable >> (a few word in the commit log would have done that trick for me ;) ). >> > > https://www.xenomai.org/pipermail/xenomai/2019-May/040925.html > > Thanks, adding that now and also picking it for stable. Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux