From d6168020099600207526b528bb77063a9f602ebe Mon Sep 17 00:00:00 2001 From: Petr Vorel Date: Tue, 18 Jul 2023 13:18:14 +0200 Subject: [PATCH] sched_rr_get_interval01: Use constant There was no reason to avoid using constant from the start. Fixes: e0570fd0a ("syscalls/sched_rr_get_interval: Validate the timeslice") Signed-off-by: Petr Vorel --- .../syscalls/sched_rr_get_interval/sched_rr_get_interval01.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testcases/kernel/syscalls/sched_rr_get_interval/sched_rr_get_interval01.c b/testcases/kernel/syscalls/sched_rr_get_interval/sched_rr_get_interval01.c index 44724215904..5ef3541ca01 100644 --- a/testcases/kernel/syscalls/sched_rr_get_interval/sched_rr_get_interval01.c +++ b/testcases/kernel/syscalls/sched_rr_get_interval/sched_rr_get_interval01.c @@ -69,7 +69,7 @@ static void run(void) } if (proc_flag) - TST_ASSERT_INT("/proc/sys/kernel/sched_rr_timeslice_ms", tst_ts_to_ms(tp)); + TST_ASSERT_INT(PROC_SCHED_RR_TIMESLICE_MS, tst_ts_to_ms(tp)); } static struct tst_test test = {