[LTP] [PATCH 10/16] syscalls/sched_rr_get_interval02: use tst_sched_*()
Alexey Kodanev
aleksei.kodanev@bell-sw.com
Tue Jul 20 15:33:18 CEST 2021
Signed-off-by: Alexey Kodanev <aleksei.kodanev@bell-sw.com>
---
.../syscalls/sched_rr_get_interval/sched_rr_get_interval02.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/testcases/kernel/syscalls/sched_rr_get_interval/sched_rr_get_interval02.c b/testcases/kernel/syscalls/sched_rr_get_interval/sched_rr_get_interval02.c
index 9a0b8673d..f84a58216 100644
--- a/testcases/kernel/syscalls/sched_rr_get_interval/sched_rr_get_interval02.c
+++ b/testcases/kernel/syscalls/sched_rr_get_interval/sched_rr_get_interval02.c
@@ -8,9 +8,9 @@
* for tv_sec & tv_nsec.
*/
-#include <sched.h>
#include "time64_variants.h"
#include "tst_timer.h"
+#include "tst_sched.h"
static struct tst_ts tp;
@@ -35,7 +35,7 @@ static void setup(void)
tp.type = tv->ts_type;
- if ((sched_setscheduler(0, SCHED_FIFO, &p)) == -1)
+ if ((tst_sched_setscheduler(0, SCHED_FIFO, &p)) == -1)
tst_res(TFAIL | TERRNO, "sched_setscheduler() failed");
}
--
2.25.1
More information about the ltp
mailing list