Module: xenomai-3 Branch: master Commit: 1f8cadb9ce402aadf61133e3930afb2090b5ce90 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=1f8cadb9ce402aadf61133e3930afb2090b5ce90
Author: Philippe Gerum <r...@xenomai.org> Date: Thu Jan 26 15:44:46 2017 +0100 testsuite/smokey: setsched: drop invalid test of pthread_setschedprio() pthread_setschedprio() is not part of the libcobalt interface. The outcome of such test can only be wrong. --- testsuite/smokey/setsched/setsched.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/testsuite/smokey/setsched/setsched.c b/testsuite/smokey/setsched/setsched.c index 359f190..f227f65 100644 --- a/testsuite/smokey/setsched/setsched.c +++ b/testsuite/smokey/setsched/setsched.c @@ -94,23 +94,6 @@ static void *thread_body(void *arg) check_linux_schedparams(SCHED_FIFO, 2); - cobalt_thread_harden(); - - if (smokey_check_status(cobalt_thread_stat(thread_pid, &stats))) - pthread_exit((void *)(long)-EINVAL); - msw = stats.msw; - - if (smokey_check_status(pthread_setschedprio(pthread_self(), 3))) - pthread_exit((void *)(long)-EINVAL); - - check_rt_schedparams(SCHED_FIFO, 3); - - if (smokey_check_status(cobalt_thread_stat(thread_pid, &stats)) || - !smokey_assert(stats.msw == msw)) - pthread_exit((void *)(long)-EINVAL); - - check_linux_schedparams(SCHED_FIFO, 3); - return (void *)0L; } _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org https://xenomai.org/mailman/listinfo/xenomai-git